[
https://issues.apache.org/jira/browse/SQOOP-462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247047#comment-13247047
]
Giridharan Kesavan commented on SQOOP-462:
------------------------------------------
steps to re-produce.
mvn install on hbase 0.92.0 branch and update m2 cache.
make sqoop use the filesystem resolver to resolve hbase.
ant package -Dresolvers=internal
sqoop build would fail with the error mentioned above.
This happens when we do an offline sqoop build. In this case the
-Dresolvers=internal is set and hence the fs (filesystem) resolver is used. The
maven pattern is not set to consider the artifact classifier and this would
just resolve the hbase jar in place of hbase test jar. By applying this patch
the maven pattern for filesystem resolver is updated to match against artifacts
with classifiers.
> Sqoop hbase Test Compilation failure.
> -------------------------------------
>
> Key: SQOOP-462
> URL: https://issues.apache.org/jira/browse/SQOOP-462
> Project: Sqoop
> Issue Type: Bug
> Components: hbase-integration
> Affects Versions: 1.4.1-incubating
> Reporter: Ashish Singh
> Attachments: Sqoop-462.patch, Sqoop-462.patch
>
>
> Executing the following ant command, hbase test compilation failed.
> ant -d -f build.xml clean tar -Dmaven.test.skip=true -Dhadoopversion=100
> -Dhadoop.version=1.0.1 -Dzookeeper.version=3.3.4 -Dhbase.version=0.92.0
> -Dresolvers=internal
> Build failure:
> [javac]
> /root/HDP/hdp_builds/sqoop-branch-1.4.1/src/test/com/cloudera/sqoop/hbase/HBaseTestCase.java:30:
> cannot find symbol
> [javac] symbol : class HBaseTestingUtility
> [javac] location: package org.apache.hadoop.hbase
> [javac] import org.apache.hadoop.hbase.HBaseTestingUtility;
> [javac] ^
> [javac]
> /root/HDP/hdp_builds/sqoop-branch-1.4.1/src/test/com/cloudera/sqoop/hbase/HBaseTestCase.java:110:
> cannot find symbol
> [javac] symbol : class HBaseTestingUtility
> [javac] location: class com.cloudera.sqoop.hbase.HBaseTestCase
> [javac] private HBaseTestingUtility hbaseTestUtil;
> [javac] ^
> [javac]
> /root/HDP/hdp_builds/sqoop-branch-1.4.1/src/test/com/cloudera/sqoop/hbase/HBaseTestCase.java:116:
> cannot find symbol
> [javac] symbol : class HBaseTestingUtility
> [javac] location: class com.cloudera.sqoop.hbase.HBaseTestCase
> [javac] hbaseTestUtil = new HBaseTestingUtility(conf);
> [javac] ^
> [javac]
> /root/HDP/hdp_builds/sqoop-branch-1.4.1/src/test/com/cloudera/sqoop/hbase/HBaseTestCase.java:167:
> internal error; cannot instantiate Configuration(boolean) at
> org.apache.hadoop.conf.Configuration to ()
> [javac] HTable table = new HTable(new Configuration(
> [javac] ^
> [javac] Note: Some input files use or override a deprecated API.
> [javac] Note: Recompile with -Xlint:deprecation for details.
> [javac] Note: Some input files use unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
> [javac] 4 errors
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira