Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> How can pig connect to the HBase in standalone mode?


Copy link to this message
-
Re: How can pig connect to the HBase in standalone mode?
I didn't set any configuration files for hbase and hdfs, as I used in
standalone mode. I used the function
org.apache.pig.backend.hadoop.hbase.HBaseStorage() to load the data
from hbase to pig. And then I got the error messages. I checked the
log of pig and found this error:
java.net.ConnectException: Call to localhost/127.0.0.1:9000 failed on
connection exception: java.net.ConnectException: Connection refused.

As I mentioned before, I didn't set any configuration of both hdfs and
hbase. So I guess
org.apache.pig.backend.hadoop.hbase.HBaseStorage() can't be used in
standalone mode. I think I have to write user defined function to
finish my task.

Thanks for your response!

Yong
On Mon, Jan 9, 2012 at 9:56 PM, Dmitriy Ryaboy <[EMAIL PROTECTED]> wrote:
> I am not sure what you mean by "pig tries to connect to the hdfs which does
> not set in standalone mode of HBase." Could you send the script you used
> and the logs you are looking at?
> Please also check that the hbase and hdfs configs you have on the classpath
> correspond to their respective clusters.
>
> On Mon, Jan 9, 2012 at 8:49 AM, yonghu <[EMAIL PROTECTED]> wrote:
>
>> Hello,
>>
>> If there is a way for pig to connect HBase in standalone mode. It
>> means pig is standalone and HBase is also standalone. I tried
>> org.apache.pig.backend.hadoop.hbase.HBaseStorage function. And from
>> the log, I saw that the pig tries to connect to the hdfs which does
>> not set in standalone mode of HBase.
>>
>> Thanks
>>
>> Yong
>>