Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> Connection error while usinh HBase client API for pseudodistrbuted mode


Copy link to this message
-
Re: Connection error while usinh HBase client API for pseudodistrbuted mode
It would be better to start fresh..Add these props in your core-site.xml file -

<property>
         <name>fs.default.name</name>
         <value>hdfs://localhost:9000</value>
     </property>
<property>
         <name>hadoop.tmp.dir</name>
         <value>/home/mohammad/hdfs/temp</value>
     </property>

<property>

In hdfs-site.xml -

<property>
         <name>dfs.name.dir</name>
         <value>/home/mohammad/hdfs/name</value>
     </property>
<property>
         <name>dfs.data.dir</name>
         <value>/home/mohammad/hdfs/data</value>
     </property>
<property>
<name>dfs.datanode.max.xcievers</name>
<value>4096</value>
</property>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>

in hbase-site.xml -

   <name>hbase.rootdir</name>
    <value>hdfs://localhost:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>

<property>
  <name>hbase.zookeeper.quorum</name>
  <value>localhost</value>
</property>
<property>
    <name>dfs.replication</name>
    <value>1</value>
</property>
<property>
      <name>hbase.zookeeper.property.clientPort</name>
      <value>2181</value>
      <description>Property from ZooKeeper's config zoo.cfg.
      The port at which the clients will connect.
      </description>
    </property>
 <property>
      <name>hbase.zookeeper.property.dataDir</name>
      <value>/home/mohammad/hbase/zookeeper</value>
      <description>Property from ZooKeeper's config zoo.cfg.
      The directory where the snapshot is stored.
      </description>
    </property>

Also change this line in hbase-env.sh -
export HBASE_REGIONSERVERS=/home/mohammad/hbase-0.90.4/conf/regionservers

Regards,
    Mohammad Tariq
On Tue, Jul 3, 2012 at 8:27 PM, AnandaVelMurugan Chandra Mohan
<[EMAIL PROTECTED]> wrote:
> That did not help. Still I dont see hbase master and zookeeper processes. I
> am thinking of starting everything from scratch. Any suggestions?
>
> On Tue, Jul 3, 2012 at 8:17 PM, Mohammad Tariq <[EMAIL PROTECTED]> wrote:
>
>> Change the value of fs.default.name to "hdfs://localhost:8020" and
>> restart everything again..It should be a combination of host:port.
>>
>> Regards,
>>     Mohammad Tariq
>>
>>
>> On Tue, Jul 3, 2012 at 8:12 PM, AnandaVelMurugan Chandra Mohan
>> <[EMAIL PROTECTED]> wrote:
>> > For starting Hbase master manually
>> >
>> > I did "cd" to <HBASE_HOME>\bin
>> > Then did ./hbase master start
>> >
>> > Contents of my hbase-site.xml
>> >
>> > <configuration>
>> >     <property>
>> >       <name>hbase.rootdir</name>
>> >       <value>hdfs://localhost:8020/user/eucalyptus/hbase</value>
>> >       <description>The directory shared by RegionServers.
>> >       </description>
>> >     </property>
>> >     <property>
>> >            <name>hbase.zookeeper.quorum</name>
>> >            <value>localhost</value>
>> >        </property>
>> >       <property>
>> >            <name>dfs.replication</name>
>> >            <value>1</value>
>> >       </property>
>> >       <property>
>> >            <name>hbase.zookeeper.property.clientPort</name>
>> >            <value>2181</value>
>> >       </property>
>> >       <property>
>> >            <name>hbase.zookeeper.property.dataDir</name>
>> >            <value>/home/eucalyptus/hbase/zookeeper</value>
>> >        </property>
>> > </configuration>
>> >
>> >
>> > core-site.xml
>> >
>> > <configuration>
>> > <property>
>> >     <name>fs.default.name</name>
>> >     <value>hdfs://localhost/</value>
>> >
>> >   </property>
>> > </configuration>
>> >
>> > I could do HDFS operations like get, put in Hadoop. I could also create
>> and
>> > list tables in Hbase shell.
>> >
>> >
>> > On Tue, Jul 3, 2012 at 7:58 PM, Mohammad Tariq <[EMAIL PROTECTED]>
>> wrote:
>> >
>> >> What do you mean by "I tried starting Hbase master manually and I got
>> >> this error."??..By manually do you mean through the shell??How were
>> >> you trying to do it earlier??And if possible could you please post the
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB