Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Unable to launch HCatLoader in sandbox

Highlighted

Unable to launch HCatLoader in sandbox

New Contributor

As per my understanding, HCatalog is pre-installed with Sandbox but I am unable to start the HCatalog mode by using pig -useHCatalog. Below are the logs:

[root@sandbox ~]# pig -useHCatalog

ls: cannot access /usr/hdp/2.5.0.0-1245/hive/lib/slf4j-api-*.jar: No such file or directory ls: cannot access /usr/hdp/2.5.0.0-1245/hive-hcatalog/lib/*hbase-storage-handler-*.jar: No such file or directory 18/05/19 17:21:36 INFO pig.ExecTypeProvider: Trying ExecType : LOCAL 18/05/19 17:21:36 INFO pig.ExecTypeProvider: Trying ExecType : MAPREDUCE 18/05/19 17:21:36 INFO pig.ExecTypeProvider: Picked MAPREDUCE as the ExecType 2018-05-19 17:21:36,916 [main] INFO org.apache.pig.Main - Apache Pig version 0.16.0.2.5.0.0-1245 (rexported) compiled Aug 26 2016, 02:07:35 2018-05-19 17:21:36,916 [main] INFO org.apache.pig.Main - Logging error messages to: /root/pig_1526750496914.log 2018-05-19 17:21:36,938 [main] INFO org.apache.pig.impl.util.Utils - Default bootup file /root/.pigbootup not found 2018-05-19 17:21:37,508 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: hdfs://sandbox.hortonworks.com:8020 2018-05-19 17:21:38,405 [main] INFO org.apache.pig.PigServer - Pig Script ID for the session: PIG-default-8809db0c-20a1-473d-ad43-cb6c45146cb0 2018-05-19 17:21:38,703 [main] INFO org.apache.hadoop.yarn.client.api.impl.TimelineClientImpl - Timeline service address: http://sandbox.hortonworks.com:8188/ws/v1/timeline/ 2018-05-19 17:21:38,822 [main] INFO org.apache.pig.backend.hadoop.PigATSClient - Created ATS Hook grunt>

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------Also i tried to search for it using:

[root@sandbox ~]# find / -name hcatalog

/tmp/hadoop-unjar2078648181508469030/org/apache/hive/hcatalog /tmp/hadoop-unjar5902012401620923154/org/apache/hive/hcatalog /tmp/hadoop-unjar3748510639892426313/org/apache/hive/hcatalog /tmp/hadoop-unjar6736926171330977508/org/apache/hive/hcatalog /tmp/hadoop-unjar2747014182523168053/org/apache/hive/hcatalog /tmp/hadoop-unjar5530539341518756073/org/apache/hive/hcatalog /tmp/hadoop-unjar6301243483223485043/org/apache/hive/hcatalog /tmp/hadoop-unjar6739057664591360243/org/apache/hive/hcatalog /tmp/hadoop-unjar8435392155549826878/org/apache/hive/hcatalog /tmp/hadoop-unjar4150406581081132404/org/apache/hive/hcatalog /tmp/hadoop-unjar3479223569630984075/org/apache/hive/hcatalog /tmp/hadoop-unjar2229270445717021864/org/apache/hive/hcatalog /tmp/hadoop-unjar4331417218233211292/org/apache/hive/hcatalog /tmp/hadoop-unjar6654825378213530599/org/apache/hive/hcatalog /tmp/hadoop-unjar828590015947631051/org/apache/hive/hcatalog /tmp/hadoop-unjar6142073656402844450/org/apache/hive/hcatalog /tmp/hadoop-unjar4428474573466643175/org/apache/hive/hcatalog /usr/hdp/2.5.0.0-1245/oozie/share/lib/hcatalog /usr/hdp/2.5.0.0-1245/hive-hcatalog/share/hcatalog /usr/hdp/2.5.0.0-1245/hive-hcatalog/etc/hcatalog /usr/lib/hue/apps/hcatalog /usr/lib/hue/apps/hcatalog/src/hcatalog

Can someone please let me know how to proceed further with it as i am new to Hadoop.

1 REPLY 1

Re: Unable to launch HCatLoader in sandbox

Mentor

@KRITIKA RAI

You can run your pig scripts in Pig View in Ambari. You can run these on the command line simply by placing them in their own file see run pig scripts

Hope that helps

Don't have an account?
Coming from Hortonworks? Activate your account here