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

Venkat Ranganathan commented on SQOOP-2297:
-------------------------------------------

Build and install the trunk/master of hadoop, hive, hbase and accumulo.    Then 
build sqoop trunk as below

{code}
ant -Dhadoopversion=200 -Dhbaseprofile=95 -Dhcatprofile=13 
-Dhadoop.version.full=2.7.0-SNAPSHOT -Dhadoop.version=2.7.0-SNAPSHOT 
-Dhbase95.version=1.1.0-SNAPSHOT -Dhcatalog.version=1.2.0-SNAPSHOT 
-Dzookeeper.version=3.4.6 -Daccumulo.version=1.7.0-SNAPSHOT clean test 
-Dtestcase=TestAccumuloImport
{code}

You will get the following exception 

{quote}
2015-04-10 06:10:56,937 (main) [WARN - 
org.apache.sqoop.accumulo.AccumuloTestCase.createMiniAccumuloCluster(AccumuloTestCase.java:162)]
 Could not load 1.6 minicluster classes
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
        at 
org.apache.sqoop.accumulo.AccumuloTestCase.createMiniAccumuloCluster(AccumuloTestCase.java:157)
        at 
org.apache.sqoop.accumulo.AccumuloTestCase.setUpCluster(AccumuloTestCase.java:134)
        at 
org.apache.sqoop.accumulo.AccumuloTestCase.setUp(AccumuloTestCase.java:249)
        at junit.framework.TestCase.runBare(TestCase.java:139)
        at junit.framework.TestResult$1.protect(TestResult.java:122)
        at junit.framework.TestResult.runProtected(TestResult.java:142)
        at junit.framework.TestResult.run(TestResult.java:125)
        at junit.framework.TestCase.run(TestCase.java:129)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:532)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1179)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1030)
Caused by: java.lang.NoClassDefFoundError: org/apache/zookeeper/KeeperException
        at 
org.apache.accumulo.minicluster.MiniAccumuloCluster.<init>(MiniAccumuloCluster.java:43)
        ... 17 more
Caused by: java.lang.ClassNotFoundException: 
org.apache.zookeeper.KeeperException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        ... 18 more
{quote}

> Explicitly add zookeeper as a dependency in ivy.xml
> ---------------------------------------------------
>
>                 Key: SQOOP-2297
>                 URL: https://issues.apache.org/jira/browse/SQOOP-2297
>             Project: Sqoop
>          Issue Type: Bug
>    Affects Versions: 1.4.5
>            Reporter: Venkat Ranganathan
>            Assignee: Venkat Ranganathan
>         Attachments: SQOOP-2297.patch
>
>
> Zookeeper is needed by Accumulo unit tests but it looks like we are no longer 
> getting zookeeper as a transitive dependency with latest HBase and Accumulo.  
>  This breaks sqoop unit tests if we build with latest versions of HBase, 
> Accumulo, Hive and Hadoop



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to