You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Nicolas ROUYER (JIRA)" <ji...@apache.org> on 2015/07/31 10:12:04 UTC

[jira] [Commented] (PHOENIX-931) PhoenixHBaseStorage having 'Relative path in absolute URI:' error.

    [ https://issues.apache.org/jira/browse/PHOENIX-931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14648904#comment-14648904 ] 

Nicolas ROUYER commented on PHOENIX-931:
----------------------------------------

Reminds me of PIG-1769 JIRA :
https://issues.apache.org/jira/browse/PIG-1769

> PhoenixHBaseStorage having 'Relative path in absolute URI:' error.
> ------------------------------------------------------------------
>
>                 Key: PHOENIX-931
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-931
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>         Environment: Phoenix: 3.0.0-incubating
> Hadoop: 2.2.0
> HBase: 0.94.7
> Pig: 0.11.1.1
>            Reporter: Steve T
>         Attachments: pig.log
>
>
> I've been trying to get around this error for hours. Am I doing something wrong, or is this a bug? Phoenix is working fine with our Hbase until I try to use the Pig store func.
> As I understand it, the *hbase://* prefix is required. However, Pig (or Hadoop?) apparently wants to append "*_logs*" to the end of the table name and create a directory with the new name, which it can't do because of the colon ( : ) character.
> Thanks!
> *My Pig script:*
> {noformat}
> A = load 'input' using PigStorage(',') as (data:chararray);
> STORE A into 'hbase://STERRELL_TEST' using org.apache.phoenix.pig.PhoenixHBaseStorage('localhost','-batchSize 1000');
> {noformat}
> *Tail end of output:*
> {noformat}
> 2014-04-11 22:16:54,738 [main] INFO  org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler - jar file Job3553321915310880408.jar created
> 2014-04-11 22:16:54,738 [main] INFO  org.apache.hadoop.conf.Configuration.deprecation - mapred.jar is deprecated. Instead, use mapreduce.job.jar
> 2014-04-11 22:16:54,779 [main] INFO  org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler - Setting up single store job
> 2014-04-11 22:16:54,783 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2017: Internal error creating job configuration.
> Details at logfile: /mnt/var/log/apps/pig.log
> {noformat}
> *Tail end of pig.log:*
> {noformat}
> Caused by: java.net.URISyntaxException: Relative path in absolute URI: hbase://STERRELL_TEST_logs
>         at java.net.URI.checkPath(URI.java:1804)
>         at java.net.URI.<init>(URI.java:752)
>         at org.apache.hadoop.fs.Path.initialize(Path.java:203)
>         ... 20 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)