accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pete Carlson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-910) Can't run helloworld example in Accumulo 1.4.0
Date Mon, 17 Dec 2012 17:34:13 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13534102#comment-13534102
] 

Pete Carlson commented on ACCUMULO-910:
---------------------------------------

We have Accumulo 1.4.0 installed on our Amazon RHEL 6.3 64-bit EC2 instance, and I'm having
problems running the helloworld example.

Our Accumulo 1.4.0 install is under /opt/accumulo-1.4.0

Here's an ll of our Accumulo directory:

{noformat}
[root@ip-10-151-7-8 /]# cd /opt/accumulo-1.4.0/
[root@ip-10-151-7-8 accumulo-1.4.0]# ll
total 156
drwxr-xr-x. 2 1000 1000  4096 Dec 10 14:55 bin
-rw-r--r--. 1 1000 1000 17457 Mar 22  2012 CHANGES
drwxr-xr-x. 3 root root  4096 Dec 12 23:53 conf
drwxr-xr-x. 2 1000 1000  4096 Dec 10 14:55 contrib
drwxr-xr-x. 5 1000 1000  4096 Dec 10 14:55 docs
drwxr-xr-x. 4 1000 1000  4096 Dec 10 14:55 lib
-rw-r--r--. 1 1000 1000 56494 Mar 21  2012 LICENSE
drwxr-xr-x. 2 root root  4096 Dec 11 12:11 logs
-rw-r--r--. 1 1000 1000  2085 Mar 21  2012 NOTICE
-rw-r--r--. 1 1000 1000 27533 Mar 26  2012 pom.xml
-rw-r--r--. 1 1000 1000 13211 Mar 21  2012 README
drwxr-xr-x. 9 1000 1000  4096 Mar 26  2012 src
drwxr-xr-x. 5 1000 1000  4096 Mar 26  2012 test
[root@ip-10-151-7-8 accumulo-1.4.0]#
{noformat}

I found the README.helloworld under /opt/accumulo-1.4.0/docs/examples and was trying to follow
this tutorial.

I was able to log into the accumulo shell by typing the following under /opt/accumulo-1.4.0
:

{noformat}
[root@ip-10-151-7-8 accumulo-1.4.0]# ./bin/accumulo shell -u root
Enter current password for 'root'@'cybersa': *******

Shell - Apache Accumulo Interactive Shell
-
- version: 1.4.0
- instance name: cybersa
- instance id: 45f4ad03-5ad7-42a0-99c4-c4fe5f5b4a32
-
- type 'help' for a list of available commands
-
root@cybersa>
{noformat}

I did a scan of current tables, created a table called 'hellotable', and then did another
scan of tables as shown below:

{noformat}
root@cybersa> tables
!METADATA
cyberSACCSDMeanVariance
dataTable
dirTable
indexTable
testDataTable
root@cybersa> createtable hellotable
root@cybersa hellotable> tables
!METADATA
cyberSACCSDMeanVariance
dataTable
dirTable
hellotable
indexTable
testDataTable
root@cybersa hellotable>
{noformat}

Next, I exited the accumulo shell and tried to launch a Java program that inserts data with
a BatchWriter.  Here was where I ran into a problem.  Note in my case the instance name is
cybersa, zookeeper instance is zookeeper1, username is root, and I just put **** to obscure
my password.

{noformat}
root@cybersa> quit
[root@ip-10-151-7-8 accumulo-1.4.0]#

[root@ip-10-151-7-8 accumulo-1.4.0]# ./bin/accumulo org.apache.accumulo.examples.simple.helloworld.InsertWithBatchWriter
cybersa zookeeper1 root **** hellotable
writing ...
0
100
200
300
400
500
600
700
800
900
1000
1100
1200
1300
1400
1500
1600
1700
1800
1900
2000
2100
2200
2300
2400
2500
2600
2700
2800
2900
3000
3100
3200
3300
3400
3500
3600
3700
3800
3900
4000
4100
4200
4300
4400
4500
4600
4700
4800
4900
5000
5100
5200
5300
5400
5500
5600
5700
5800
5900
6000
6100
6200
6300
6400
6500
6600
6700
6800
6900
7000
7100
7200
7300
7400
7500
7600
7700
7800
7900
8000
8100
8200
8300
8400
8500
8600
8700
8800
8900
9000
9100
9200
9300
9400
9500
9600
9700
9800
9900
[root@ip-10-151-7-8 accumulo-1.4.0]#
{noformat}
                
> Can't run helloworld example in Accumulo 1.4.0
> ----------------------------------------------
>
>                 Key: ACCUMULO-910
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-910
>             Project: Accumulo
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Pete Carlson
>
> I'm new to Apache Accumulo, and having problems trying to run the helloworld example.
 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message