I didn't start hdfs. Standalone means local mode, not pseudo
distributed or fully distributed. I just modify the hbase-site.xml
file as following:
<configuration>
<property>
<name>hbase.rootdir</name>
<value>file:///tmp/hbase-${user.name} /hbase</value>
</property>
</configuration>
then I could start hbase and interact with it. I followed the
instruction from http://hbase.apache.org/book/quickstart.html
On Tue, Jan 10, 2012 at 11:39 AM, Dmitriy Ryaboy <[email protected]> wrote:
> What do you mean by standalone mode? I thought by standalone you meant you
> have 2 separate clusters, but it seems like you mean something else. It's
> trying to connect to local host on the default hbase port. That's a
> reasonable thing to do if by standalone you mean local mode. Can you explain
> how you started hadoop and hbase? Do you have the hbase daemons running
> somewhere? Which machine? What port is the hbase master using?
>
>
> On Jan 10, 2012, at 1:28 AM, yonghu <[email protected]> wrote:
>
>> 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
>>>>