2015-02-09 4 views
3

Я пытаюсь установить Accumulo и попробовать его на несколько дней, но он доставляется даже до начала. Я закончил использование HortonWorks Sandbox, который поставляется с Hadoop и Zookeeper. Я следовал instruciton на странице настройки Accmulo и изменяет конфигурацию, как показано ниже:Accumulo застрял, а не начал

[[email protected] ~]# vi /etc/accumulo/conf/accumulo-env.sh 
if [ -z "$ACCUMULO_HOME" ] 
then 
test -z "$ACCUMULO_HOME"  && export ACCUMULO_HOME=/usr/hdp/2.2.0.0-2041/accumulo 
fi 

if [ -z "$HADOOP_HOME" ] 
then 
    test -z "$HADOOP_PREFIX"  && export HADOOP_PREFIX=/usr/hdp/current/hadoop-client 
else 
    HADOOP_PREFIX="$HADOOP_HOME" 
    unset HADOOP_HOME 
fi 

# hadoop-1.2: 
# 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/conf" 

test -z "$JAVA_HOME"    && export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64 
test -z "$ZOOKEEPER_HOME"  && export ZOOKEEPER_HOME=/usr/hdp/current/zookeeper-client 
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 

Используя эту конфигурацию, я был в состоянии успешно начать Accumulo:

[[email protected] ~]# /usr/hdp/2.2.0.0-2041/accumulo/bin/start-all.sh 
Starting monitor on localhost 
WARN : Max open files on localhost is 1024, recommend 32768 
Starting tablet servers .... done 
Starting tablet server on localhost 
WARN : Max open files on localhost is 1024, recommend 32768 
SLF4J: Class path contains multiple SLF4J bindings. 
SLF4J: Found binding in [jar:file:/root/reza/accumulo-1.6.1/lib/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class] 
SLF4J: Found binding in [jar:file:/usr/hdp/current/hadoop-client/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] 
SLF4J: Found binding in [jar:file:/usr/hdp/current/hadoop-client/client/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class] 
SLF4J: Found binding in [jar:file:/usr/hdp/current/hadoop-client/client/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] 
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. 
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] 
2015-02-09 05:30:21,742 [fs.VolumeManagerImpl] WARN : dfs.datanode.synconclose set to false in hdfs-site.xml: data loss is possible on system reset or power loss 
2015-02-09 05:30:21,760 [server.Accumulo] INFO : Attempting to talk to zookeeper 
2015-02-09 05:30:21,920 [server.Accumulo] INFO : Zookeeper connected and initialized, attemping to talk to HDFS 
2015-02-09 05:30:22,195 [server.Accumulo] INFO : Connected to HDFS 
2015-02-09 05:30:22,207 [fs.VolumeManagerImpl] WARN : dfs.datanode.synconclose set to false in hdfs-site.xml: data loss is possible on system reset or power loss 
Starting master on localhost 
WARN : Max open files on localhost is 1024, recommend 32768 
Starting garbage collector on localhost 
WARN : Max open files on localhost is 1024, recommend 32768 
Starting tracer on localhost 
WARN : Max open files on localhost is 1024, recommend 32768 

Я также был в состоянии успешно инициализировать Accumulo :

[[email protected] ~]# /usr/hdp/2.2.0.0-2041/accumulo/bin/accumulo init 
SLF4J: Class path contains multiple SLF4J bindings. 
SLF4J: Found binding in [jar:file:/root/reza/accumulo-1.6.1/lib/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class] 
SLF4J: Found binding in [jar:file:/usr/hdp/current/hadoop-client/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] 
SLF4J: Found binding in [jar:file:/usr/hdp/current/hadoop-client/client/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class] 
SLF4J: Found binding in [jar:file:/usr/hdp/current/hadoop-client/client/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] 
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. 
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] 
2015-02-09 04:40:56,225 [fs.VolumeManagerImpl] WARN : dfs.datanode.synconclose set to false in hdfs-site.xml: data loss is possible on system reset or power loss 
2015-02-09 04:40:56,229 [init.Initialize] INFO : Hadoop Filesystem is hdfs://sandbox.hortonworks.com:8020 
2015-02-09 04:40:56,232 [init.Initialize] INFO : Accumulo data dirs are [hdfs://sandbox.hortonworks.com:8020/accumulo] 
2015-02-09 04:40:56,232 [init.Initialize] INFO : Zookeeper server is localhost:2181 
2015-02-09 04:40:56,232 [init.Initialize] INFO : Checking if Zookeeper is available. If this hangs, then you need to make sure zookeeper is running 
Warning!!! Your instance secret is still set to the default, this is not secure. We highly recommend you change it. 
    You can change the instance secret in accumulo by using: 
     bin/accumulo org.apache.accumulo.server.util.ChangeSecret oldPassword newPassword. 
    You will also need to edit your secret in your configuration file by adding the property instance.secret to your conf/accumulo-site.xml. Without this accumulo will not operate correctly 
    Instance name : reza 
    Instance name "reza" exists. Delete existing entry from zookeeper? [Y/N] : N 
    Instance name : reza2 
    Enter initial password for root (this may not be applicable for your security setup): **** 
    Confirm initial password for root: **** 
    2015-02-09 04:42:32,497 [Configuration.deprecation] INFO : dfs.replication.min is deprecated. Instead, use dfs.namenode.replication.min 
    2015-02-09 04:42:32,509 [fs.VolumeManagerImpl] WARN : dfs.datanode.synconclose set to false in hdfs-site.xml: data loss is possible on system reset or power loss 
    2015-02-09 04:42:33,208 [Configuration.deprecation] INFO : dfs.block.size is deprecated. Instead, use dfs.blocksize 
    2015-02-09 04:42:33,964 [conf.AccumuloConfiguration] INFO : Loaded class : org.apache.accumulo.server.security.handler.ZKAuthorizor 
    2015-02-09 04:42:33,969 [conf.AccumuloConfiguration] INFO : Loaded class : org.apache.accumulo.server.security.handler.ZKAuthenticator 
    2015-02-09 04:42:33,973 [conf.AccumuloConfiguration] INFO : Loaded class : org.apache.accumulo.server.security.handler.ZKPermHandler 

Однако, когда я пытаюсь запустить оболочку Accumulo, чтобы попробовать его, он получает stucked не бросать какие-либо ошибки:

[[email protected] ~]# /usr/bin/accumulo shell --password reza 
SLF4J: Class path contains multiple SLF4J bindings. 
SLF4J: Found binding in [jar:file:/root/reza/accumulo-1.6.1/lib/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class] 
SLF4J: Found binding in [jar:file:/usr/hdp/current/hadoop-client/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] 
SLF4J: Found binding in [jar:file:/usr/hdp/current/hadoop-client/client/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class] 
SLF4J: Found binding in [jar:file:/usr/hdp/current/hadoop-client/client/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] 
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. 
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] 
2015-02-09 05:21:15,397 [impl.ServerClient] WARN : There are no tablet servers: check that zookeeper and accumulo are running. 

Это еще не прогрессирует, не дает мне оболочки, чтобы попробовать. Какие-либо рекомендации относительно того, как исправить это или в чем проблема?

+0

Вы попробуйте подключить сразу после инициализации, или же перезагрузки/приостановить песочницу, а затем попробовать? У меня были проблемы в прошлом с VM, когда они приостанавливали/приостанавливали их. Странно, что вы смогли инициализировать, поскольку это означало бы, что это все. Можете ли вы добраться до интерфейса мониторинга? http: // accumulomaster: 50095/status – FuriousGeorge

+0

Вы также можете убедиться, что ZK запущен и работает. Не знакомы с песочницей, но в моей системе вы можете подключиться к zk, например: 'zookeeper-client -server zk01 ls/accumulo' – FuriousGeorge

+0

Я попытался подключиться к Zookeeper, и все было в порядке. Фактически, Accumulo может подключиться к нему во время «start-all». Я также попытался подключиться сразу после инициализации. – reza

ответ

0

Возможно, вам необходимо указать имя экземпляра и информацию о хосте ZooKeeper. Запустите оболочку с --help, чтобы найти правильные параметры командной строки.

Примечание. Вы можете отладить оболочку Accumulo, запустив ее с помощью --debug в командной строке.

+0

Примером этого может быть: 'accumulo shell -u root -zh zoo1: 2181, zoo2: 2181, zoo3: 2181 -zi reza2 -p reza' – FuriousGeorge

+0

спасибо, но я уже установил Zookeeper в накопителе. шиллинг Фактически, во время «accumulo init» он находит Zookeeper и может подключиться к нему. Я даже попробовал «shell -u root -zh localhost: 2181 -zi reza -password reza», но в итоге застрял в том же месте – reza

0

Вы запустили Accumulo, прежде чем пытаться запустить оболочку?

/usr/hdp/2.2.0.0-2041/accumulo/bin/start-all.sh 

А потом

/usr/bin/accumulo shell --password reza 
+0

спасибо, но ясно, что я сделал оба этих шага. – reza

+1

Вы начали все, а затем инициализировали Accumulo? Порядок шагов, которые вы предприняли, неясен. – elserj

+0

Да, это тот порядок, который я сделал. – reza

Смежные вопросы