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

Switch to Threaded View
HBase, mail # dev - Re: Hbase on 64-bit Windows 7: "hostname not provided"


Copy link to this message
-
Re: Hbase on 64-bit Windows 7: "hostname not provided"
Andrew Milkowski 2010-01-19, 01:12
Hi,

correct hbase configuration file (hbase.zookeeper.quorum needs to be set to
127.0.0.1)

thanks!

hbase-site.xml :

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
/**
 * Copyright 2009 The Apache Software Foundation
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
-->
<configuration>

  <property>
        <name>hbase.rootdir</name>
        <value>hdfs://localhost:9000/hbase</value>
        <description>The directory shared by region servers.
     </description>
    </property>

 <property>
  <name>hbase.zookeeper.quorum</name>
  <value>127.0.0.1</value>
  <description>Comma separated list of servers in the ZooKeeper Quorum.
  For example, "host1.mydomain.com,host2.mydomain.com,host3.mydomain.com".
  By default this is set to localhost for local and pseudo-distributed modes
  of operation. For a fully-distributed setup, this should be set to a full
  list of ZooKeeper quorum servers. If HBASE_MANAGES_ZK is set in
hbase-env.sh
  this is the list of servers which we will start/stop ZooKeeper on.
  </description>
 </property>

    <property>
        <name>hbase.cluster.distributed</name>
        <value>false</value>
        <description>The mode the cluster will be in. Possible values are
      false: standalone and pseudo-distributed setups with managed Zookeeper
      true: fully-distributed with unmanaged Zookeeper Quorum (see
hbase-env.sh)
        </description>
    </property>

 <property>
        <name>hbase.regionserver.class</name>
        <value>org.apache.hadoop.hbase.ipc.IndexedRegionInterface</value>
    </property>

    <property>
        <name>hbase.regionserver.impl</name>

<value>org.apache.hadoop.hbase.regionserver.tableindexed.IndexedRegionServer</value>
    </property>

</configuration>

On Mon, Jan 18, 2010 at 7:51 PM, Andrew Milkowski <[EMAIL PROTECTED]
> wrote:

> Hi stack
>
> Environment is cygwin (version 1.7), Windows 7 64-bit
>
> This was the only way I could manage to get hbase up (with a standalone
> zookeeper server) , problem does not exist on Unix (Centos) but that is
> expected also I am working to have complete installation
> hadoop/hbase/zookeeper running on the Mac will be happy to follow up on
> issues.
>
> As far as adding "workaround", absolutely (I tried just about anything, as
> the original author of this issues, I have had no problems running
> "self-managed" zookeeper on Windows 32-bit XP
>
> (fyi, I did not try to "force" IPv4 , but I did try change cygwin sshd and
> ssh configuration files to use IPV4, no effect),
>
> btw, thanks for your great work, product (hadoop family) is phenomenal!
>
> cheers
>
>
> Following are sequenced steps and configuration files used (IndexedRegion
> server parameters is of course optional)
>
> Sequence of run:
>
> 1.start zookeeper (zkServer.sh start)  (ping to check "live" status:
> zkCli.sh -server 127.0.0.1:2181
>
> 2. start hadoop
>
> 3. start hbase
>
> <configuration>
>   <property>
>         <name>hbase.rootdir</name>
>         <value>hdfs://localhost:9000/hbase</value>
>         <description>The directory shared by region servers.