Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit 41bb292

Browse files
author
nomiero
committed
Update Pig_Tutorial.pig
fix the pig script sample after changing the package path.
1 parent a593935 commit 41bb292

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/Pig_Tutorial.pig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ REGISTER <path to DocumentDB Java SDK jar/azure-documentdb-SNAPSHOT-dependencies
66
REGISTER <path to DocumentDB Hadoop jar/azure-documentdb-hadoop-SNAPSHOT.jar>;
77

88
-- Load DocumentDB ids and timestamps
9-
DocumentDB_timestamps = LOAD 'DocumentDB Endpoint' USING com.microsoft.azure.documentdb.hadoop.pig.DocumentDBLoader(
9+
DocumentDB_timestamps = LOAD 'DocumentDB Endpoint' USING com.microsoft.azure.documentdb.pig.DocumentDBLoader(
1010
'DocumentDB Primary Key', 'DocumentDB Database Name', 'DocumentDB Input Collection Name 1,DocumentDB Input Collection Name 2',
1111
'SELECT r._rid AS id, r._ts AS ts FROM root r' );
1212

@@ -18,4 +18,4 @@ by_minute_count = FOREACH by_minute GENERATE FLATTEN(group) as (Year:int, Month:
1818
-- Store results back into DocumentDB
1919
STORE by_minute_count INTO 'DocumentDB Endpoint'
2020
USING com.microsoft.azure.documentdb.hadoop.pig.DocumentDBStorage(
21-
'DocumentDB Primary Key', 'DocumentDB Database Name', 'DocumentDB Output Collection Name');
21+
'DocumentDB Primary Key', 'DocumentDB Database Name', 'DocumentDB Output Collection Name');

0 commit comments

Comments
 (0)