I tried to run the following pig command to load the data from hdfs to hbase:-

A = LOAD 'hdfs://bXXXXX/user/user1/development/hbase/output/part-00000' USING PigStorage('t') as (strdata1:chararray, strdata2:chararray);
STORE A INTO 'hbase://mydata' USING org.apache.pig.backend.hadoop.hbase.HBaseStorage('mycf:strdata2');
where, hdfs://bXXXXXXX/user/user1/development/hbase/output/part-00000 is the map-reduce output mydata is the hbase table name created mycf is the column family name

I am getting the following error:-

ERROR 2017: Internal error creating job configuration.

org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobCreationException: ERROR 2017: Internal error creating job configuration. at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.getJob(JobControlCompiler.java:673) at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.compile(JobControlCompiler.java:256) at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:147) at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.execute(HExecutionEngine.java:378) at org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1198) at org.apache.pig.PigServer.execute(PigServer.java:1190) at org.apache.pig.PigServer.access$100(PigServer.java:128) at org.apache.pig.PigServer$Graph.execute(PigServer.java:1517) at org.apache.pig.PigServer.executeBatchEx(PigServer.java:362) at org.apache.pig.PigServer.executeBatch(PigServer.java:329) at org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:112) at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:169) at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:141) at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:90) at org.apache.pig.Main.run(Main.java:406) at org.apache.pig.Main.main(Main.java:107) Caused by: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: hbase://mydata_logs at org.apache.hadoop.fs.Path.initialize(Path.java:148) at org.apache.hadoop.fs.Path.<init>(Path.java:71) at org.apache.hadoop.fs.Path.<init>(Path.java:45) at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.getJob(JobControlCompiler.java:476) ... 15 more Caused by: java.net.URISyntaxException: Relative path in absolute URI: hbase://mydata_logs at java.net.URI.checkPath(URI.java:1787) at java.net.URI.<init>(URI.java:735) at org.apache.hadoop.fs.Path.initialize(Path.java:145)

asked 11 Apr '12, 23:48

sailaja's gravatar image

sailaja
16889
accept rate: 0%

edited 09 Oct '12, 00:56

Nabeel's gravatar image

Nabeel ♦♦
2.2k147


hbase://mydata_logs is not syntactically correct. Please fix. Either use "mydata_logs" directly, or give the full pathname to mydata_logs.

link

answered 12 Apr '12, 06:10

MC%20Srivas's gravatar image

MC Srivas ♦♦
2.6k1517
accept rate: 35%

This forum answers questions for hadoop implementations on MapRFS. For any queries on HDFS, please use the hdfs-user mailing lists http://mail-archives.apache.org/mod_mbox/hadoop-hdfs-user/

link

answered 11 Apr '12, 23:54

Nabeel's gravatar image

Nabeel ♦♦
2.2k147
accept rate: 24%

What Nabeel says is correct, but issue seems to be in your hbase configuration, possibly on the pig side. The key is the part about having a relative path in an absolute URI.

(12 Apr '12, 06:06) TedDunning ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×76
×59
×25

Asked: 11 Apr '12, 23:48

Seen: 1,202 times

Last updated: 02 Nov '12, 05:05

powered by OSQA