hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shashwat shriparv <dwivedishash...@gmail.com>
Subject Re: Failed to start master in standalone mode
Date Wed, 04 Jan 2012 19:23:18 GMT
Changed the address to loopback (127.0.0.1) in /etc/hosts file will help.

there will be two entries with 127.0.0.1 and 127.0.1.1 make 2nd one as
127.0.0.1 and let us know it works or not.

Regards
Shashwat

On Wed, Jan 4, 2012 at 4:05 AM, Jean-Daniel Cryans <jdcryans@apache.org>wrote:

> (This is a user question, sending to user@ and putting dev@ in BCC)
>
> If you read what the exceptions tell you (which might be easy to miss
> in between the other stuff, I agree), you'll see the important bit
> which is:
>
> > Caused by: java.net.BindException: Problem binding to /8.15.7.117:0 :
> > Cannot assign requested address
>
> From the BindException's javadoc:
>
> > Signals that an error occurred while attempting to bind a socket to a
> local address and port. Typically, the port is in use, or the requested
> local address could not be assigned.
>
> Hope this helps,
>
> J-D
>
> On Fri, Dec 30, 2011 at 8:55 AM, Webber <shadow.webber@gmail.com> wrote:
> > Hi,
> >
> > I'm trying to get HBase up in standalone mode but I'm struggling. I'm
> > following the "get started" guide and I'm running the default
> configuration
> > i.e. using the tmp directory. I'm able to start hbase with no issues but
> > errors are logged as soon as the shell is opened.
> >
> > Here are the log, hbase-site.xml and hbase-env.sh
> >
> > *log*
> > Fri Dec 30 11:43:48 EST 2011 Starting master on ubxix-vb
> > ulimit -n 1024
> > 2011-12-30 11:43:54,815 INFO org.apache.zookeeper.server.ZooKeeperServer:
> > Server environment:zookeeper.version=3.3.2-1031432, built on 11/05/2010
> > 05:32 GMT
> > 2011-12-30 11:43:54,817 INFO org.apache.zookeeper.server.ZooKeeperServer:
> > Server environment:host.name=8.15.7.117
> > 2011-12-30 11:43:54,817 INFO org.apache.zookeeper.server.ZooKeeperServer:
> > Server environment:java.version=1.6.0_26
> > 2011-12-30 11:43:54,817 INFO org.apache.zookeeper.server.ZooKeeperServer:
> > Server environment:java.vendor=Sun Microsystems Inc.
> > 2011-12-30 11:43:54,818 INFO org.apache.zookeeper.server.ZooKeeperServer:
> > Server environment:java.home=/usr/lib/jvm/java-6-sun-1.6.0.26/jre
> > 2011-12-30 11:43:54,818 INFO org.apache.zookeeper.server.ZooKeeperServer:
> > Server
> >
> environment:java.class.path=/home/ubxix/Downloads/hbase-0.90.5/bin/../conf:/usr/lib/jvm/java-6-sun/lib/tools.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/..:/home/ubxix/Downloads/hbase-0.90.5/bin/../hbase-0.90.5.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../hbase-0.90.5-tests.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/activation-1.1.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/asm-3.1.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/avro-1.3.3.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/commons-cli-1.2.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/commons-codec-1.4.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/commons-el-1.0.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/commons-httpclient-3.1.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/commons-lang-2.5.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/commons-logging-1.1.1.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/commons-net-1.4.1.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/core-3.1.1.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/guava-r06.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/hadoop-core-0.20-append-r1056497.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/jackson-core-asl-1.5.5.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/jackson-jaxrs-1.5.5.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/jackson-mapper-asl-1.4.2.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/jackson-xc-1.5.5.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/jasper-compiler-5.5.23.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/jasper-runtime-5.5.23.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/jaxb-api-2.1.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/jaxb-impl-2.1.12.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/jersey-core-1.4.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/jersey-json-1.4.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/jersey-server-1.4.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/jettison-1.1.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/jetty-6.1.26.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/jetty-util-6.1.26.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/jruby-complete-1.6.0.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/jsp-2.1-6.1.14.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/jsp-api-2.1-6.1.14.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/jsr311-api-1.1.1.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/log4j-1.2.16.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/protobuf-java-2.3.0.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/servlet-api-2.5-6.1.14.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/slf4j-api-1.5.8.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/slf4j-log4j12-1.5.8.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/stax-api-1.0.1.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/thrift-0.2.0.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/xmlenc-0.52.jar:/home/ubxix/Downloads/hbase-0.90.5/bin/../lib/zookeeper-3.3.2.jar
> > 2011-12-30 11:43:54,820 INFO org.apache.zookeeper.server.ZooKeeperServer:
> > Server
> >
> environment:java.library.path=/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
> > 2011-12-30 11:43:54,821 INFO org.apache.zookeeper.server.ZooKeeperServer:
> > Server environment:java.io.tmpdir=/tmp
> > 2011-12-30 11:43:54,821 INFO org.apache.zookeeper.server.ZooKeeperServer:
> > Server environment:java.compiler=<NA>
> > 2011-12-30 11:43:54,821 INFO org.apache.zookeeper.server.ZooKeeperServer:
> > Server environment:os.name=Linux
> > 2011-12-30 11:43:54,821 INFO org.apache.zookeeper.server.ZooKeeperServer:
> > Server environment:os.arch=i386
> > 2011-12-30 11:43:54,821 INFO org.apache.zookeeper.server.ZooKeeperServer:
> > Server environment:os.version=3.0.0-14-generic
> > 2011-12-30 11:43:54,822 INFO org.apache.zookeeper.server.ZooKeeperServer:
> > Server environment:user.name=ubxix
> > 2011-12-30 11:43:54,822 INFO org.apache.zookeeper.server.ZooKeeperServer:
> > Server environment:user.home=/home/ubxix
> > 2011-12-30 11:43:54,823 INFO org.apache.zookeeper.server.ZooKeeperServer:
> > Server environment:user.dir=/home/ubxix/Downloads/hbase-0.90.5
> > 2011-12-30 11:43:54,901 INFO org.apache.zookeeper.server.ZooKeeperServer:
> > Created server with tickTime 2000 minSessionTimeout 4000
> maxSessionTimeout
> > 40000 datadir /tmp/hbase-ubxix/zookeeper/zookeeper/version-2 snapdir
> > /tmp/hbase-ubxix/zookeeper/zookeeper/version-2
> > 2011-12-30 11:43:54,952 INFO org.apache.zookeeper.server.NIOServerCnxn:
> > binding to port 0.0.0.0/0.0.0.0:2181
> > 2011-12-30 11:43:54,971 INFO
> > org.apache.zookeeper.server.persistence.FileTxnSnapLog: Snapshotting: 0
> > 2011-12-30 11:43:55,130 INFO org.apache.zookeeper.server.NIOServerCnxn:
> > Accepted socket connection from /127.0.0.1:44832
> > 2011-12-30 11:43:55,139 INFO org.apache.zookeeper.server.NIOServerCnxn:
> > Processing stat command from /127.0.0.1:44832
> > 2011-12-30 11:43:55,143 INFO org.apache.zookeeper.server.NIOServerCnxn:
> > Stat command output
> > 2011-12-30 11:43:55,146 INFO
> > org.apache.hadoop.hbase.zookeeper.MiniZooKeeperCluster: Started MiniZK
> > Server on client port: 2181
> > 2011-12-30 11:43:55,153 INFO org.apache.zookeeper.server.NIOServerCnxn:
> > Closed socket connection for client /127.0.0.1:44832 (no session
> > established for client)
> > 2011-12-30 11:44:05,424 ERROR
> > org.apache.hadoop.hbase.master.HMasterCommandLine: Failed to start master
> > java.lang.RuntimeException: Failed construction of Master: class
> > org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMasterCannot
> assign
> > requested address
> >    at
> >
> org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:155)
> >    at
> >
> org.apache.hadoop.hbase.LocalHBaseCluster.addMaster(LocalHBaseCluster.java:197)
> >    at
> >
> org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:147)
> >    at
> >
> org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:137)
> >    at
> >
> org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:102)
> >    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> >    at
> >
> org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
> >    at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1079)
> > Caused by: java.net.BindException: Problem binding to /8.15.7.117:0 :
> > Cannot assign requested address
> >    at org.apache.hadoop.hbase.ipc.HBaseServer.bind(HBaseServer.java:203)
> >    at
> >
> org.apache.hadoop.hbase.ipc.HBaseServer$Listener.<init>(HBaseServer.java:270)
> >    at
> org.apache.hadoop.hbase.ipc.HBaseServer.<init>(HBaseServer.java:1168)
> >    at
> org.apache.hadoop.hbase.ipc.HBaseRPC$Server.<init>(HBaseRPC.java:544)
> >    at org.apache.hadoop.hbase.ipc.HBaseRPC.getServer(HBaseRPC.java:514)
> >    at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:192)
> >    at
> >
> org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMaster.<init>(HMasterCommandLine.java:188)
> >    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> >    at
> >
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> >    at
> >
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> >    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> >    at
> >
> org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:152)
> >    ... 7 more
> > Caused by: java.net.BindException: Cannot assign requested address
> >    at sun.nio.ch.Net.bind(Native Method)
> >    at
> > sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126)
> >    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
> >    at org.apache.hadoop.hbase.ipc.HBaseServer.bind(HBaseServer.java:201)
> >    ... 18 more
> >
> >
> > *hbase-env.sh*
> > # Set environment variables here.
> >
> > # The java implementation to use.  Java 1.6 required.
> > export JAVA_HOME=/usr/lib/jvm/java-6-sun
> >
> > # Extra Java CLASSPATH elements.  Optional.
> > # export HBASE_CLASSPATH=
> >
> > # The maximum amount of heap to use, in MB. Default is 1000.
> > # export HBASE_HEAPSIZE=1000
> >
> > # Extra Java runtime options.
> > # Below are what we set by default.  May only work with SUN JVM.
> > # For more on why as well as other possible settings,
> > # see http://wiki.apache.org/hadoop/PerformanceTuning
> > export HBASE_OPTS="-ea -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode"
> >
> > # Uncomment below to enable java garbage collection logging in the .out
> > file.
> > # export HBASE_OPTS="$HBASE_OPTS -verbose:gc -XX:+PrintGCDetails
> > -XX:+PrintGCDateStamps"
> >
> > # Uncomment and adjust to enable JMX exporting
> > # See jmxremote.password and jmxremote.access in $JRE_HOME/lib/management
> > to configure remote password access.
> > # More details at:
> > http://java.sun.com/javase/6/docs/technotes/guides/management/agent.html
> > #
> > # export HBASE_JMX_BASE="-Dcom.sun.management.jmxremote.ssl=false
> > -Dcom.sun.management.jmxremote.authenticate=false"
> > # export HBASE_MASTER_OPTS="$HBASE_JMX_BASE
> > -Dcom.sun.management.jmxremote.port=10101"
> > # export HBASE_REGIONSERVER_OPTS="$HBASE_JMX_BASE
> > -Dcom.sun.management.jmxremote.port=10102"
> > # export HBASE_THRIFT_OPTS="$HBASE_JMX_BASE
> > -Dcom.sun.management.jmxremote.port=10103"
> > # export HBASE_ZOOKEEPER_OPTS="$HBASE_JMX_BASE
> > -Dcom.sun.management.jmxremote.port=10104"
> >
> > # File naming hosts on which HRegionServers will run.
> > $HBASE_HOME/conf/regionservers by default.
> > # export HBASE_REGIONSERVERS=${HBASE_HOME}/conf/regionservers
> >
> > # Extra ssh options.  Empty by default.
> > # export HBASE_SSH_OPTS="-o ConnectTimeout=1 -o SendEnv=HBASE_CONF_DIR"
> >
> > # Where log files are stored.  $HBASE_HOME/logs by default.
> > # export HBASE_LOG_DIR=${HBASE_HOME}/logs
> >
> > # A string representing this instance of hbase. $USER by default.
> > # export HBASE_IDENT_STRING=$USER
> >
> > # The scheduling priority for daemon processes.  See 'man nice'.
> > # export HBASE_NICENESS=10
> >
> > # The directory where pid files are stored. /tmp by default.
> > # export HBASE_PID_DIR=/var/hadoop/pids
> >
> > # Seconds to sleep between slave commands.  Unset by default.  This
> > # can be useful in large clusters, where, e.g., slave rsyncs can
> > # otherwise arrive faster than the master can service them.
> > # export HBASE_SLAVE_SLEEP=0.1
> >
> > # Tell HBase whether it should manage it's own instance of Zookeeper or
> not.
> > # export HBASE_MANAGES_ZK=true
> >
> >
> >
> > *hbase-site.xml*
> > <?xml version="1.0"?>
> > <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
> > <configuration>
> >  <property>
> >    <name>hbase.rootdir</name>
> >    <value>file:///DIRECTORY/hbase</value>
> >  </property>
> > </configuration>
> >
> >
> >
> > Thanks!
>



-- 
Shashwat Shriparv
09900059620
09663531241



<iframe src="
http://rcm.amazon.com/e/cm?t=shriparv-20&o=1&p=48&l=ur1&category=kindlerotating&f=ifr"
width="728" height="90" scrolling="no" border="0" marginwidth="0"
style="border:none;" frameborder="0"></iframe>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message