Member since
10-01-2015
3933
Posts
1150
Kudos Received
374
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 3559 | 05-03-2017 05:13 PM | |
| 2935 | 05-02-2017 08:38 AM | |
| 3184 | 05-02-2017 08:13 AM | |
| 3147 | 04-10-2017 10:51 PM | |
| 1623 | 03-28-2017 02:27 AM |
08-22-2016
02:10 PM
@Vaibhav Kumar here's my result my home directory looks like so root@u1201:~# ls -ltra
total 8440
-rw-r--r-- 1 root root 140 Apr 19 2012 .profile
-rw-r--r-- 1 root root 3106 Apr 19 2012 .bashrc
-rw-r--r-- 1 root root 8491533 Nov 18 2015 apache-maven-3.3.9-bin.tar.gz
drwxr-xr-x 4 zookeeper users 4096 Dec 16 2015 hdp_manual_install_rpm_helper_files-2.3.4.0.3485
-rw-r--r-- 1 root root 85490 Dec 21 2015 hdp_manual_install_rpm_helper_files-2.3.4.0.3485.tar.gz
drwxr-xr-x 2 root root 4096 May 10 19:20 .oracle_jre_usage
-rw------- 1 root root 1024 May 10 19:20 .rnd
drw------- 2 root root 4096 May 10 19:35 .ssh
-rw------- 1 root root 1675 May 11 15:22 ec2-keypair
-rw-rw-r-- 1 vagrant vagrant 196 Aug 14 22:28 mydata.csv
-rw-r--r-- 1 root root 167 Aug 21 17:22 6836-mydata.tar.gz
drwxr-xr-x 26 root root 4096 Aug 22 12:59 ..
-rw------- 1 root root 4306 Aug 22 14:02 .bash_history
-rw-r--r-- 1 root root 1510 Aug 22 14:05 pig_1471874665243.log
-rw-r--r-- 1 root root 286 Aug 22 14:06 .pig_history
drwx------ 5 root root 4096 Aug 22 14:07 .
enter Pig Tez local mode using pig -x tez_local you will get the grunt shell WARNING: Use "yarn jar" to launch YARN applications.
16/08/22 14:08:13 INFO pig.ExecTypeProvider: Trying ExecType : LOCAL
16/08/22 14:08:13 INFO pig.ExecTypeProvider: Trying ExecType : MAPREDUCE
16/08/22 14:08:13 INFO pig.ExecTypeProvider: Trying ExecType : TEZ_LOCAL
16/08/22 14:08:13 INFO pig.ExecTypeProvider: Picked TEZ_LOCAL as the ExecType
2016-08-22 14:08:13,754 [main] INFO org.apache.pig.Main - Apache Pig version 0.15.0.2.4.2.0-258 (rexported) compiled Apr 25 2016, 06:41:45
2016-08-22 14:08:13,755 [main] INFO org.apache.pig.Main - Logging error messages to: /root/pig_1471874893753.log
2016-08-22 14:08:13,789 [main] INFO org.apache.pig.impl.util.Utils - Default bootup file /root/.pigbootup not found
2016-08-22 14:08:13,941 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: file:///
2016-08-22 14:08:14,203 [main] INFO org.apache.pig.PigServer - Pig Script ID for the session: PIG-default-d9d3ca17-ae1d-42ec-b984-d38db00b1f0f
2016-08-22 14:08:14,737 [main] INFO org.apache.hadoop.yarn.client.api.impl.TimelineClientImpl - Timeline service address: http://u1202.ambari.apache.org:8188/ws/v1/timeline/
2016-08-22 14:08:15,456 [main] INFO org.apache.pig.backend.hadoop.ATSService - Created ATS Hook
now start entering your script grunt> CASE1 = load 'mydata.csv' using PigStorage(',');
grunt> store CASE1 into 'outputdir' using PigStorage(',');
the result of that is Input(s):
Successfully read 10 records from: "file:///root/mydata.csv"
Output(s):
Successfully stored 10 records in: "file:///root/outputdir"
now I can list the directory from grunt shell grunt> fs -ls
Found 15 items
-rw------- 1 root root 4306 2016-08-22 14:02 .bash_history
-rw-r--r-- 1 root root 3106 2012-04-19 09:15 .bashrc
drwxr-xr-x - root root 4096 2016-05-10 19:20 .oracle_jre_usage
-rw-r--r-- 1 root root 394 2016-08-22 14:10 .pig_history
-rw-r--r-- 1 root root 140 2012-04-19 09:15 .profile
-rw------- 1 root root 1024 2016-05-10 19:20 .rnd
drw------- - root root 4096 2016-05-10 19:35 .ssh
-rw-r--r-- 1 root root 167 2016-08-21 17:22 6836-mydata.tar.gz
-rw-r--r-- 1 root root 8491533 2015-11-18 07:42 apache-maven-3.3.9-bin.tar.gz
-rw------- 1 root root 1675 2016-05-11 15:22 ec2-keypair
drwxr-xr-x - zookeeper users 4096 2015-12-16 08:35 hdp_manual_install_rpm_helper_files-2.3.4.0.3485
-rw-r--r-- 1 root root 85490 2015-12-21 16:45 hdp_manual_install_rpm_helper_files-2.3.4.0.3485.tar.gz
-rw-rw-r-- 1 vagrant vagrant 196 2016-08-14 22:28 mydata.csv
drwxr-xr-x - root root 4096 2016-08-22 14:10 outputdir
-rw-r--r-- 1 root root 1510 2016-08-22 14:05 pig_1471874665243.log
notice the outputdir and mydata.csv are both listed, this is inside your home directory, let's do ls on the outputdir grunt> fs -ls outputdir
Found 2 items
-rw-r--r-- 1 root root 0 2016-08-22 14:10 outputdir/_SUCCESS
-rw-r--r-- 1 root root 196 2016-08-22 14:10 outputdir/part-v000-o000-r-00000
let's look inside the result file grunt> fs -cat outputdir/part-v000-o000-r-00000
cmte_id,cand_id
C00458844,P60006723
C00458844,P60006723
C00458846,P60006723
C00458847,P60006723
C00458848,P60006723
C00458846,P60006723
C00458846,P60006723
C00458856,P60006723
C00458852,P60006723
and for the sake of it let's cat the input file grunt> fs -cat mydata.csv
cmte_id,cand_id
C00458844,P60006723
C00458844,P60006723
C00458846,P60006723
C00458847,P60006723
C00458848,P60006723
C00458846,P60006723
C00458846,P60006723
C00458856,P60006723
C00458852,P60006723
... View more
08-22-2016
12:37 PM
1 Kudo
Heres our doc, since we did t release 1.0 yet as part of HDP, we don't have that info published. http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.2/bk_storm-user-guide/content/ch_using_storm.html Here's scheduler for 1.0 info https://storm.apache.org/releases/1.0.2/Resource_Aware_Scheduler_overview.html And https://storm.apache.org/releases/1.0.2/Storm-Scheduler.html
... View more
08-21-2016
06:46 PM
'media/vaibhav' That does not look right
... View more
08-21-2016
03:22 PM
That's what I'm saying, until we release HDP 2.5 you can only install Apache Pig, not the Pig we provide through Ambari
... View more
08-21-2016
01:25 PM
1 Kudo
The procedure Geoffrey provided would work if we published HDP 2.5 bits, that's the only place we provide Pig 0.16 libraries. this should be available end of August, until then you only have an option to install Pig from Apache. here's instructions for Pig 0.13 but mostly apply, you will also need to configure Tez. http://hadooptutorial.info/pig-installation-on-ubuntu/ Keep in mind this is not supported by HWX and you are on your own. So in essence it is doable but not advisable unless you know the consequences. Ambari will not manage this approach, best advice is to wait for HDP 2.5 with Ambari 2.4.
... View more
08-20-2016
11:34 PM
Please paste sample dataset and script I'll test
... View more
08-20-2016
08:25 PM
Can you do ls command on the output directory in Grunt shell? I wonder if Desktop with upper case exists. fs -ls
... View more
08-20-2016
02:23 PM
Apache Nifi and Ambari integration is not complete yet, therefore you get errors. You need to wait for official release.
... View more
08-20-2016
02:20 PM
refer to manual installation doc for hdp-select to fix your symlink issues https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.0/bk_upgrading_Ambari/content/_Run_HDP_Select_mamiu.html when you have a specific error open a question, generally you shouldn't get these errors.
... View more