accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Busbey <busbey+li...@cloudera.com>
Subject Re: Failed to connect to server
Date Fri, 28 Mar 2014 04:07:02 GMT
1) You should update your HDFS config to refer to the namenode by hostname
and not as localhost. Ideally you should set up a nameservice so that the
namenode could be changed in teh future, but that's inconsequential ATM.

2) on the EC2 host, can you copy/paste the output of "which hadoop" as the
user you're using to start accumulo?

3) on the EC2 host, can you run "host
ec2-XXXXXXXXX.us-west-1.compute.amazonaws.com"



On Thu, Mar 27, 2014 at 10:06 PM, escribamarko <escribamarko@gmail.com>wrote:

> Hi Josh,
>
> Thank you.
>
> I have checked the variables in accumulo-env.sh, and it seems like they are
> properly configured.
> I am having this issue ""You must set HADOOP_PREFIX"" only if I use
> ec2-XXXXXXXX.us-west-1.compute.amazonaws.com on master/slaves files. But
> when I set internal 172.30.1.78 on master/slaves file everything is working
> locally.
>
> For a reference, here is the accumulo-env.sh
>
> if [ -z "$HADOOP_HOME" ]
> then
>    test -z "$HADOOP_PREFIX"      && export HADOOP_PREFIX=$HADOOP_HDFS_HOME
> else
>    HADOOP_PREFIX="$HADOOP_PREFIX "
>    unset HADOOP_HOME
> fi
> # test -z "$HADOOP_CONF_DIR"       && export
> HADOOP_CONF_DIR="$HADOOP_PREFIX/conf"
> # hadoop-2.0:
> test -z "$HADOOP_CONF_DIR"     && export
> HADOOP_CONF_DIR="$HADOOP_PREFIX/etc/hadoop"
>
>
> test -z "$JAVA_HOME"             && export JAVA_HOME=$JAVA_HOME
> test -z "$ZOOKEEPER_HOME"        && export ZOOKEEPER_HOME=$ZOOKEEPER_HOME
> test -z "$ACCUMULO_LOG_DIR"      && export
> ACCUMULO_LOG_DIR=$ACCUMULO_HOME/logs
> if [ -f ${ACCUMULO_CONF_DIR}/accumulo.policy ]
> then
>    POLICY="-Djava.security.manager
> -Djava.security.policy=${ACCUMULO_CONF_DIR}/accumulo.policy"
> Fi
> test -z "$ACCUMULO_TSERVER_OPTS" && export ACCUMULO_TSERVER_OPTS="${POLICY}
> -Xmx384m -Xms384m "
> test -z "$ACCUMULO_MASTER_OPTS"  && export ACCUMULO_MASTER_OPTS="${POLICY}
> -Xmx128m -Xms128m"
> test -z "$ACCUMULO_MONITOR_OPTS" && export ACCUMULO_MONITOR_OPTS="${POLICY}
> -Xmx64m -Xms64m"
> test -z "$ACCUMULO_GC_OPTS"      && export ACCUMULO_GC_OPTS="-Xmx64m
> -Xms64m"
> test -z "$ACCUMULO_GENERAL_OPTS" && export
> ACCUMULO_GENERAL_OPTS="-XX:+UseConcMarkSweepGC
> -XX:CMSInitiatingOccupancyFraction=75 -Djava$
> test -z "$ACCUMULO_OTHER_OPTS"   && export ACCUMULO_OTHER_OPTS="-Xmx128m
> -Xms64m"
> # what do when the JVM runs out of heap memory
> export ACCUMULO_KILL_CMD='kill -9 %p'
>
> # Should the monitor bind to all network interfaces -- default: false
> # export ACCUMULO_MONITOR_BIND_ALL="true"
>
>
> Should I also need to add "export ACCUMULO_TSERVER_OPTS" and rest
> accumulo_opts on .bashrc?
>
> Thanks in advance.
>
>
>

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