[
https://issues.apache.org/jira/browse/SQOOP-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13764091#comment-13764091
]
Jarek Jarcec Cecho commented on SQOOP-1197:
-------------------------------------------
[~sam liu], I've tried the patch, but it do not seem to be working:
{code}
$ ant clean test -Dhadoopversion=210
Buildfile: /home/jarcec/apache/repos/sqoop/build.xml
[echo] Use Hadoop 210
[echo] Use HBase profile 0.94 by default
[echo] Use built-in SQL server connector by default
clean:
[delete] Deleting directory /home/jarcec/apache/repos/sqoop/build
init:
gen-version:
ivy-download:
[get] Getting:
http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
[get] To: /home/jarcec/apache/repos/sqoop/lib/ivy-2.1.0.jar
[get] Not modified - so not downloaded
ivy-probe-antlib:
ivy-init-antlib:
ivy-init:
[ivy:configure] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
[ivy:configure] :: loading settings :: file =
/home/jarcec/apache/repos/sqoop/ivy/ivysettings.xml
ivy-resolve-hadoop:
[ivy:resolve] unknown configuration 'hbasecompat${hbasecompatprofile}'. It is
extended by hbase95 in file:/home/jarcec/apache/repos/sqoop/ivy.xml
BUILD FAILED
/home/jarcec/apache/repos/sqoop/build.xml:1343: syntax errors in ivy file:
java.text.ParseException: unknown configuration
'hbasecompat${hbasecompatprofile}'. It is extended by hbase95 in
file:/home/jarcec/apache/repos/sqoop/ivy.xml
at
org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.parse(XmlModuleDescriptorParser.java:263)
at
org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser.parseDescriptor(XmlModuleDescriptorParser.java:102)
at
org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser.parseDescriptor(AbstractModuleDescriptorParser.java:48)
at
org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:183)
at org.apache.ivy.Ivy.resolve(Ivy.java:502)
at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:244)
at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.lang.IllegalStateException: unknown configuration
'hbasecompat${hbasecompatprofile}'. It is extended by hbase95
at
org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor.checkConf(DefaultModuleDescriptor.java:658)
at
org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor.check(DefaultModuleDescriptor.java:639)
at
org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.parse(XmlModuleDescriptorParser.java:255)
... 22 more
Total time: 2 seconds
{code}
I think that the problem is that {{if-else}} block in {{build.xml}} for 210 is
not defining variable {{hbasecompatprofile}} as other branches of the {{if}}
statement do.
> Enable Sqoop to build against Hadoop-2.1.0-beta jar files
> ---------------------------------------------------------
>
> Key: SQOOP-1197
> URL: https://issues.apache.org/jira/browse/SQOOP-1197
> Project: Sqoop
> Issue Type: New Feature
> Components: build
> Affects Versions: 1.4.3
> Environment: RHEL 6.3 x86_64
> Reporter: sam liu
> Fix For: 1.4.3
>
> Attachments: SQOOP-1197.patch, SQOOP-1197-trunk.patch
>
>
> To update build.xml and ivy.xml to enable Sqoop to build against
> Hadoop-2.1.0-beta jar files
--
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