Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7F8A8200C86 for ; Wed, 31 May 2017 10:17:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7E489160BBA; Wed, 31 May 2017 08:17:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A9740160BDB for ; Wed, 31 May 2017 10:17:08 +0200 (CEST) Received: (qmail 56450 invoked by uid 500); 31 May 2017 08:17:07 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 56424 invoked by uid 99); 31 May 2017 08:17:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 May 2017 08:17:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 146F9C1FDD for ; Wed, 31 May 2017 08:17:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id jni3ldEAApNa for ; Wed, 31 May 2017 08:17:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id F2DC55FBB8 for ; Wed, 31 May 2017 08:17:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id F1FB1E0D54 for ; Wed, 31 May 2017 08:17:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 598A421B5C for ; Wed, 31 May 2017 08:17:04 +0000 (UTC) Date: Wed, 31 May 2017 08:17:04 +0000 (UTC) From: "Luigi Di Fraia (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (ACCUMULO-4640) Accumulo shell is expecting instance.volumes in client.conf instead of accumulo-site.xml MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 31 May 2017 08:17:09 -0000 [ https://issues.apache.org/jira/browse/ACCUMULO-4640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16030818#comment-16030818 ] Luigi Di Fraia edited comment on ACCUMULO-4640 at 5/31/17 8:16 AM: ------------------------------------------------------------------- Thank you for your reply, [~milleruntime]. Here's some feedback for Accumulo 1.8.1 with an empty _client.conf_ file: {{[accumulo@master bin]$ ./accumulo shell -z SAC zookeeper01,zookeeper02,zookeeper03 -u root}} Password: **** 2017-05-31 09:07:19,405 [trace.DistributedTrace] INFO : SpanReceiver org.apache.accumulo.tracer.ZooTraceClient was loaded successfully. Shell - Apache Accumulo Interactive Shell - - version: 1.8.1 - instance name: SAC - instance id: 5772e580-f009-402d-b988-43bbaf22b2a2 - - type 'help' for a list of available commands - root@SAC> For reference, without "-z": [accumulo@master bin]$ ./accumulo shell -u root 2017-05-31 09:07:46,251 [zookeeper.ZooUtil] ERROR: unable obtain instance id at hdfs://master:9000/accumulo/instance_id 2017-05-31 09:07:46,254 [start.Main] ERROR: Thread 'shell' died. java.lang.RuntimeException: Accumulo not initialized, there is no instance id at hdfs://master:9000/accumulo/instance_id at org.apache.accumulo.core.zookeeper.ZooUtil.getInstanceIDFromHdfs(ZooUtil.java:66) at org.apache.accumulo.core.zookeeper.ZooUtil.getInstanceIDFromHdfs(ZooUtil.java:51) at org.apache.accumulo.shell.Shell.getZooInstance(Shell.java:511) at org.apache.accumulo.shell.Shell.setInstance(Shell.java:473) at org.apache.accumulo.shell.Shell.config(Shell.java:322) at org.apache.accumulo.shell.Shell.execute(Shell.java:589) at org.apache.accumulo.start.Main$1.run(Main.java:120) at java.lang.Thread.run(Thread.java:748) was (Author: luigidifraia): Thank you for your reply, [~milleruntime]. Here's some feedback for Accumulo 1.8.1 with an empty _client.conf_ file: ``` [accumulo@master bin]$ ./accumulo shell -z SAC zookeeper01,zookeeper02,zookeeper03 -u root Password: **** 2017-05-31 09:07:19,405 [trace.DistributedTrace] INFO : SpanReceiver org.apache.accumulo.tracer.ZooTraceClient was loaded successfully. Shell - Apache Accumulo Interactive Shell - - version: 1.8.1 - instance name: SAC - instance id: 5772e580-f009-402d-b988-43bbaf22b2a2 - - type 'help' for a list of available commands - root@SAC> ``` For reference, without "-z": ``` [accumulo@master bin]$ ./accumulo shell -u root 2017-05-31 09:07:46,251 [zookeeper.ZooUtil] ERROR: unable obtain instance id at hdfs://master:9000/accumulo/instance_id 2017-05-31 09:07:46,254 [start.Main] ERROR: Thread 'shell' died. java.lang.RuntimeException: Accumulo not initialized, there is no instance id at hdfs://master:9000/accumulo/instance_id at org.apache.accumulo.core.zookeeper.ZooUtil.getInstanceIDFromHdfs(ZooUtil.java:66) at org.apache.accumulo.core.zookeeper.ZooUtil.getInstanceIDFromHdfs(ZooUtil.java:51) at org.apache.accumulo.shell.Shell.getZooInstance(Shell.java:511) at org.apache.accumulo.shell.Shell.setInstance(Shell.java:473) at org.apache.accumulo.shell.Shell.config(Shell.java:322) at org.apache.accumulo.shell.Shell.execute(Shell.java:589) at org.apache.accumulo.start.Main$1.run(Main.java:120) at java.lang.Thread.run(Thread.java:748) ``` > Accumulo shell is expecting instance.volumes in client.conf instead of accumulo-site.xml > ---------------------------------------------------------------------------------------- > > Key: ACCUMULO-4640 > URL: https://issues.apache.org/jira/browse/ACCUMULO-4640 > Project: Accumulo > Issue Type: Bug > Components: shell > Affects Versions: 1.8.1 > Environment: [accumulo@master ~]$ cat /etc/redhat-release > CentOS Linux release 7.3.1611 (Core) > [accumulo@master ~]$ uname -a > Linux master 3.10.0-514.10.2.el7.x86_64 #1 SMP Fri Mar 3 00:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux > [accumulo@master ~]$ java -version > java version "1.8.0_112" > Java(TM) SE Runtime Environment (build 1.8.0_112-b15) > Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode) > Hadoop: 2.8.0 > ZooKeeper: 3.4.10 > Accumulo: 1.8.1 > Reporter: Luigi Di Fraia > Fix For: 1.8.2, 2.0.0 > > Attachments: accumulo-env.sh, accumulo-site.xml > > > Starting with Accumulo 1.8.1 we are getting the exception as per below when the Accumulo shell is invoked: > [accumulo@master ~]$ /usr/local/accumulo/bin/accumulo shell -u root -p ***removed*** > 2017-05-18 14:31:23,667 [zookeeper.ZooUtil] ERROR: unable obtain instance id at hdfs://master:9000/accumulo/instance_id > 2017-05-18 14:31:23,669 [start.Main] ERROR: Thread 'shell' died. > java.lang.RuntimeException: Accumulo not initialized, there is no instance id at hdfs://master:9000/accumulo/instance_id > at org.apache.accumulo.core.zookeeper.ZooUtil.getInstanceIDFromHdfs(ZooUtil.java:66) > at org.apache.accumulo.core.zookeeper.ZooUtil.getInstanceIDFromHdfs(ZooUtil.java:51) > at org.apache.accumulo.shell.Shell.getZooInstance(Shell.java:511) > at org.apache.accumulo.shell.Shell.setInstance(Shell.java:473) > at org.apache.accumulo.shell.Shell.config(Shell.java:322) > at org.apache.accumulo.shell.Shell.execute(Shell.java:589) > at org.apache.accumulo.start.Main$1.run(Main.java:120) > at java.lang.Thread.run(Thread.java:745) > The location used to look up the instance_id (hdfs://master:9000/accumulo/instance_id) does not appear to be consistent with this site configuration and I am not quite sure how it is being worked out. > The Accumulo Overview web page shows that the instance exists: > Instance ID: 4264f11a-704f-4c1f-880f-08f6154232b2 > Thu May 18 14:44:03 BST 2017 > The instance_id file is in Hadoop's HDFS: > [accumulo@master ~]$ /usr/local/hadoop/bin/hdfs dfs -ls /user/accumulo/accumulo/instance_id > Found 1 items > -rw-r--r-- 3 accumulo supergroup 0 2017-05-18 14:27 /user/accumulo/accumulo/instance_id/4264f11a-704f-4c1f-880f-08f6154232b2 > Again, within the same environment as selected above apart for using Accumulo 1.8.0, the shell can be invoked without issues. > Here's a snippet from accumulo-site.xml: > > instance.volumes > hdfs://master:9000/user/accumulo/accumulo > comma separated list of URIs for volumes. example: hdfs://localhost:9000/accumulo > > For historical reasons our "root volume" is not / but /user/accumulo although the above stack trace suggests that / is being used as root volume. -- This message was sent by Atlassian JIRA (v6.3.15#6346)