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
Accumulo >> mail # dev >> problems running accumuo


Copy link to this message
-
problems running accumuo
All,

I hope this is a correct email for my question. I never used Accumulo, only
it'd predecessor Cloudbase and I am experienced with hadoop and hbase and
from a developer' perspective. I am not a sysAdmin, but I have installed
all Hadoop and HBase on VM's  before. I am now trying to install Accumulo
on my VM.

I have installed CDH3 and ZooKeeper on a CENTOS 6.3. VM (4G memory). Hadoop
and ZooKeeper appear to run fine. I installed accumulo-1.4.2 and believe I
configured it correctly. I used the accumulo-env.sh in the
conf/examples/1GB/native-standalone as my template.

When I start accumulo using the start-all.sh script I dpo not get any
errors, however I does not return to a command prompt. I also get an error
stating my log4j is not initialized correctly I know that comes when there
is no log4j.proerties or xml file.

When I try to execute accumulo shell I get the following:

[root@localhost bin]# ./accumulo shell
log4j:WARN No appenders could be found for logger
(org.apache.accumulo.start.classloader.AccumuloClassLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
Thread "shell" died null
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.accumulo.start.Main$1.run(Main.java:89)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: Accumulo not initialized, there is
no instance id at /accumulo/instance_id
    at
org.apache.accumulo.core.client.ZooKeeperInstance.getInstanceIDFromHdfs(ZooKeeperInstance.java:263)
    at
org.apache.accumulo.core.util.shell.Shell.getDefaultInstance(Shell.java:375)
    at org.apache.accumulo.core.util.shell.Shell.config(Shell.java:303)
    at org.apache.accumulo.core.util.shell.Shell.main(Shell.java:384)
    ... 6 more

I have attached some config files. I'm not sure why accumulo-site.xml and
accumulo-env.sh won;t attach, si I copied them here.I looked through the
log files, but didn't see anything other than listed error.

*accumulo-env.sh:*
#! /usr/bin/env bash

# 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.

###
### Configure these environment variables to point to your local
installations.
###
### The functional tests require conditional values, so keep this style:
###
### test -z "$JAVA_HOME" && export JAVA_HOME=/usr/local/lib/jdk-1.6.0
###
###
### Note that the -Xmx -Xms settings below require substantial free memory:
### you may want to use smaller values, especially when running everything
### on a single machine.
###

test -z "$ACCUMULO_HOME"         && export
ACCUMULO_HOME=/usr/lib/accumulo-1.4.2
test -z "$JAVA_HOME"             && export JAVA_HOME=/usr/java/latest
test -z "$HADOOP_HOME"           && export HADOOP_HOME=/usr/lib/hadoop
test -z "$ZOOKEEPER_HOME"        && export
ZOOKEEPER_HOME=/usr/lib/zookeeper-3.4.5
test -z "$ACCUMULO_LOG_DIR"      && export
ACCUMULO_LOG_DIR=$ACCUMULO_HOME/logs
if [ -f ${ACCUMULO_HOME}/conf/accumulo.policy ]
then
   POLICY="-Djava.security.manager
-Djava.security.policy=${ACCUMULO_HOME}/conf/accumulo.policy"
fi
test -z "$ACCUMULO_TSERVER_OPTS" && export ACCUMULO_TSERVER_OPTS="${POLICY}
-Xmx128m -Xms128m "
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_LOGGER_OPTS"  && export ACCUMULO_LOGGER_OPTS="-Xmx384m
-Xms256m"
test -z "$ACCUMULO_GENERAL_OPTS" && export
ACCUMULO_GENERAL_OPTS="-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=75"
test -z "$ACCUMULO_OTHER_OPTS"   && export ACCUMULO_OTHER_OPTS="-Xmx1g
-Xms256m"
export ACCUMULO_LOG_HOST=`(grep -v '^#' $ACCUMULO_HOME/conf/masters ; echo
localhost ) 2>/dev/null | head -1`

*accumulo-site.xml:*

<?xml version="1.0" encoding="UTF-8"?>
<!--
  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.
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<configuration>
        <!--
  Put your site-specific accumulo configurations here.

  The available configuration values along with their defaults
  are documented in docs/config.html

  Unless you are simply testing at your workstation, you will most
  defi
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