Return-Path: X-Original-To: apmail-accumulo-dev-archive@www.apache.org Delivered-To: apmail-accumulo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B6CB3E52D for ; Fri, 28 Dec 2012 18:13:50 +0000 (UTC) Received: (qmail 4580 invoked by uid 500); 28 Dec 2012 18:13:50 -0000 Delivered-To: apmail-accumulo-dev-archive@accumulo.apache.org Received: (qmail 4553 invoked by uid 500); 28 Dec 2012 18:13:50 -0000 Mailing-List: contact dev-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list dev@accumulo.apache.org Received: (qmail 4535 invoked by uid 99); 28 Dec 2012 18:13:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Dec 2012 18:13:50 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jvines@gmail.com designates 209.85.223.177 as permitted sender) Received: from [209.85.223.177] (HELO mail-ie0-f177.google.com) (209.85.223.177) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Dec 2012 18:13:43 +0000 Received: by mail-ie0-f177.google.com with SMTP id k13so13206260iea.36 for ; Fri, 28 Dec 2012 10:13:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=IHoeG09+iC6XJXs7xa9IAHUlB18MdDpiNHMBa2t0Mv0=; b=xGVvGnGw9jGn3qQXz7Gn8F6E+vj47AXTl+XZhjc/cwDnnEvPtjYq4V1iJxdt8qtG+t /hj1mGgKPefPlmablBZh58gYgqhqRl+QM8n16k367PvznlW4KRzCvbrZOwvQf8EEQ8g0 Bi5jBqF6O4FOpEl1C8ESKvmICMW3AdeMaAgajZb4X1OrmHvZF7N/KSorwxstxC5JRpru 8CFgl8gj0fCNWNqLIY40+gZmY50HVsWKEoMPsXGZYfmfhE2BrwRWDlKuEqB7teEfgpk5 PtPZjnDH4/+KKdkDww7m6oST3lWTLDveVTDrgWQ30MJJf4UFm1EjAGztmG9Dl1h0QcEy 1fsg== MIME-Version: 1.0 Received: by 10.50.53.226 with SMTP id e2mr25541828igp.92.1356718402083; Fri, 28 Dec 2012 10:13:22 -0800 (PST) Received: by 10.64.60.131 with HTTP; Fri, 28 Dec 2012 10:13:21 -0800 (PST) Received: by 10.64.60.131 with HTTP; Fri, 28 Dec 2012 10:13:21 -0800 (PST) In-Reply-To: References: Date: Fri, 28 Dec 2012 13:13:21 -0500 Message-ID: Subject: Re: problems running accumuo From: John Vines To: Accumulo Dev List Content-Type: multipart/alternative; boundary=f46d043d64956a9cd804d1ed9ef6 X-Virus-Checked: Checked by ClamAV on apache.org --f46d043d64956a9cd804d1ed9ef6 Content-Type: text/plain; charset=ISO-8859-1 And when you copy the examples, you should copy all the files, not just a few. We have the log4j setups in those directories as well. Sent from my phone, please pardon the typos and brevity. On Dec 28, 2012 12:57 PM, "Tim Piety" wrote: > 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:* > > > > > > > > > > instance.zookeeper.host > localhost:2181 > comma separated list of zookeeper servers > > > > logger.dir.walog > walogs > The directory used to store write-ahead logs on the > local filesystem. It is possible to specify a comma-separated list of > directories. > > > > instance.secret > DEFAULT > A secret unique to a given instance that all servers > must know in order to communicate with one another. > Change it before initialization. To change it later use > ./bin/accumulo org.apache.accumulo.server.util.ChangeSecret [oldpasswd] > [newpasswd], > and then update this file. > > > > > tserver.memory.maps.max > 256M > > > > tserver.cache.data.size > 15M > > > > tserver.cache.index.size > 40M > > > > trace.password > > secret > > > > trace.user > root > > > > logger.sort.buffer.size > 50M > > > > tserver.walog.max.size > 256M > > > tserver.walog.max.size > 100M > > > > general.classpaths > > $ACCUMULO_HOME/src/server/target/classes/, > $ACCUMULO_HOME/src/core/target/classes/, > $ACCUMULO_HOME/src/start/target/classes/, > $ACCUMULO_HOME/src/examples/target/classes/, > $ACCUMULO_HOME/lib/[^.].$ACCUMULO_VERSION.jar, > $ACCUMULO_HOME/lib/[^.].*.jar, > $ZOOKEEPER_HOME/zookeeper[^.].*.jar, > $HADOOP_HOME/conf, > $HADOOP_HOME/[^.].*.jar, > $HADOOP_HOME/lib/[^.].*.jar, > > Classpaths that accumulo checks for updates and class > files. > When using the Security Manager, please remove the > ".../target/classes/" values. > > > > > > > tserver.walog.max.size > 100M > > > thanks, I will not get back to this until after the Holiday, but thought > I'd at least post the question > > Tim > > > --f46d043d64956a9cd804d1ed9ef6--