Accumulo
  1. Accumulo
  2. ACCUMULO-910

Can't run helloworld example in Accumulo 1.4.0

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Not A Problem
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I'm new to Apache Accumulo, and having problems trying to run the helloworld example.

        Activity

        Hide
        William Slacum added a comment -

        Can you describe a bit more about what's going? Attaching some of the output you're seeing would be of great help. Thanks!

        Show
        William Slacum added a comment - Can you describe a bit more about what's going? Attaching some of the output you're seeing would be of great help. Thanks!
        Hide
        Pete Carlson added a comment -

        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:

        [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]#
        

        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 :

        [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>
        

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

        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>
        

        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.

        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]#
        
        Show
        Pete Carlson added a comment - 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: [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]# 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 : [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> I did a scan of current tables, created a table called 'hellotable', and then did another scan of tables as shown below: 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> 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. 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]#
        Hide
        Pete Carlson added a comment -

        Wow, it actually worked this time! I swear I did the same thing as last time.

        When I scanned the hellotable I now see data. Here's a snippet of the first page of the table:

        root@cybersa hellotable> scan
        row_0 colfam:colqual_0 []    value_0_0
        row_0 colfam:colqual_1 []    value_0_1
        row_0 colfam:colqual_2 []    value_0_2
        row_0 colfam:colqual_3 []    value_0_3
        row_0 colfam:colqual_4 []    value_0_4
        row_1 colfam:colqual_0 []    value_1_0
        row_1 colfam:colqual_1 []    value_1_1
        row_1 colfam:colqual_2 []    value_1_2
        row_1 colfam:colqual_3 []    value_1_3
        row_1 colfam:colqual_4 []    value_1_4
        row_10 colfam:colqual_0 []    value_10_0
        row_10 colfam:colqual_1 []    value_10_1
        row_10 colfam:colqual_2 []    value_10_2
        row_10 colfam:colqual_3 []    value_10_3
        row_10 colfam:colqual_4 []    value_10_4
        row_100 colfam:colqual_0 []    value_100_0
        row_100 colfam:colqual_1 []    value_100_1
        row_100 colfam:colqual_2 []    value_100_2
        row_100 colfam:colqual_3 []    value_100_3
        row_100 colfam:colqual_4 []    value_100_4
        row_1000 colfam:colqual_0 []    value_1000_0
        row_1000 colfam:colqual_1 []    value_1000_1
        row_1000 colfam:colqual_2 []    value_1000_2
        row_1000 colfam:colqual_3 []    value_1000_3
        row_1000 colfam:colqual_4 []    value_1000_4
        row_1001 colfam:colqual_0 []    value_1001_0
        row_1001 colfam:colqual_1 []    value_1001_1
        row_1001 colfam:colqual_2 []    value_1001_2
        row_1001 colfam:colqual_3 []    value_1001_3
        row_1001 colfam:colqual_4 []    value_1001_4
        row_1002 colfam:colqual_0 []    value_1002_0
        -------------------------------------------- hit any key to continue or 'q' to quit --------------------------------------------
        
        Show
        Pete Carlson added a comment - Wow, it actually worked this time! I swear I did the same thing as last time. When I scanned the hellotable I now see data. Here's a snippet of the first page of the table: root@cybersa hellotable> scan row_0 colfam:colqual_0 [] value_0_0 row_0 colfam:colqual_1 [] value_0_1 row_0 colfam:colqual_2 [] value_0_2 row_0 colfam:colqual_3 [] value_0_3 row_0 colfam:colqual_4 [] value_0_4 row_1 colfam:colqual_0 [] value_1_0 row_1 colfam:colqual_1 [] value_1_1 row_1 colfam:colqual_2 [] value_1_2 row_1 colfam:colqual_3 [] value_1_3 row_1 colfam:colqual_4 [] value_1_4 row_10 colfam:colqual_0 [] value_10_0 row_10 colfam:colqual_1 [] value_10_1 row_10 colfam:colqual_2 [] value_10_2 row_10 colfam:colqual_3 [] value_10_3 row_10 colfam:colqual_4 [] value_10_4 row_100 colfam:colqual_0 [] value_100_0 row_100 colfam:colqual_1 [] value_100_1 row_100 colfam:colqual_2 [] value_100_2 row_100 colfam:colqual_3 [] value_100_3 row_100 colfam:colqual_4 [] value_100_4 row_1000 colfam:colqual_0 [] value_1000_0 row_1000 colfam:colqual_1 [] value_1000_1 row_1000 colfam:colqual_2 [] value_1000_2 row_1000 colfam:colqual_3 [] value_1000_3 row_1000 colfam:colqual_4 [] value_1000_4 row_1001 colfam:colqual_0 [] value_1001_0 row_1001 colfam:colqual_1 [] value_1001_1 row_1001 colfam:colqual_2 [] value_1001_2 row_1001 colfam:colqual_3 [] value_1001_3 row_1001 colfam:colqual_4 [] value_1001_4 row_1002 colfam:colqual_0 [] value_1002_0 -------------------------------------------- hit any key to continue or 'q' to quit --------------------------------------------
        Hide
        John Vines added a comment -

        I'm still having trouble following- what is the problem your having? It looks like it runs fine.

        Show
        John Vines added a comment - I'm still having trouble following- what is the problem your having? It looks like it runs fine.
        Hide
        Pete Carlson added a comment -

        I just realized that the error I was making was that I had typed 'instance' instead of 'cybersa' which is the instance name.

        Here was the error I was getting when I mis-typed (again with password obscured as ****):

        [root@ip-10-151-7-8 accumulo-1.4.0]# ./bin/accumulo org.apache.accumuo.examples.simple.helloworld.InsertWithBatchWriter instance zookeeper1 root **** hellotable
        Classname org.apache.accumuo.examples.simple.helloworld.InsertWithBatchWriter not found.  Please make sure you use the wholly qualified package name.
        [root@ip-10-151-7-8 accumulo-1.4.0]#
        

        And here was the command with the instance specified correctly:

        [root@ip-10-151-7-8 accumulo-1.4.0]# ./bin/accumulo org.apache.accumuo.examples.simple.helloworld.InsertWithBatchWriter cybersa zookeeper1 root **** hellotable
        
        Show
        Pete Carlson added a comment - I just realized that the error I was making was that I had typed 'instance' instead of 'cybersa' which is the instance name. Here was the error I was getting when I mis-typed (again with password obscured as ****): [root@ip-10-151-7-8 accumulo-1.4.0]# ./bin/accumulo org.apache.accumuo.examples.simple.helloworld.InsertWithBatchWriter instance zookeeper1 root **** hellotable Classname org.apache.accumuo.examples.simple.helloworld.InsertWithBatchWriter not found. Please make sure you use the wholly qualified package name. [root@ip-10-151-7-8 accumulo-1.4.0]# And here was the command with the instance specified correctly: [root@ip-10-151-7-8 accumulo-1.4.0]# ./bin/accumulo org.apache.accumuo.examples.simple.helloworld.InsertWithBatchWriter cybersa zookeeper1 root **** hellotable
        Hide
        Pete Carlson added a comment -

        BTW, I mis-spelled accumulo as accumuo in the previous comment. Here's the correct command:

        [root@ip-10-151-7-8 accumulo-1.4.0]# ./bin/accumulo org.apache.accumulo.examples.simple.helloworld.InsertWithBatchWriter cybersa zookeeper1 root **** hellotable
        
        Show
        Pete Carlson added a comment - BTW, I mis-spelled accumulo as accumuo in the previous comment. Here's the correct command: [root@ip-10-151-7-8 accumulo-1.4.0]# ./bin/accumulo org.apache.accumulo.examples.simple.helloworld.InsertWithBatchWriter cybersa zookeeper1 root **** hellotable

          People

          • Assignee:
            Unassigned
            Reporter:
            Pete Carlson
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development