hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bing Li <smallpu...@gmail.com>
Subject Re: Does hive REAL enable TestHadoop20SAuthBridge in hive-0.8.0 ? -- [HIVE-2257] patch doesn't work for me
Date Thu, 22 Dec 2011 11:12:54 GMT
So in hive-0.8.0, it excludes TestHadoop20SAuthBridge, right?
If so, which test case would cover the security in hive?

If I want to use hadoop-1.0.0, I ONLY can make is as *hadoop.version*,
right?  ( need to apply patch in [HIVE-2631] )

Thanks
- Bing

2011/12/22 Thomas Weise <thw@yahoo-inc.com>

> This was taken out when making Hive compile with Hadoop 0.23.
>
> The test case will be put back as part of
>
> https://issues.apache.org/jira/browse/HIVE-2629
>
>
> On 12/22/11 12:15 AM, "Bing Li" <smallputao@gmail.com> wrote:
>
> > Hi, All
> > When I ran hive UT, I found that TestHadoop20SAuthBridge wasn't compiled,
> > so TestHadoop20SAuthBridge won't be run by "ant test" command.
> >
> > In src/shims/build.xml, I found the following lines:
> >
> >   <target name="compile-test" depends="compile">
> >     <echo message="Project: ${ant.project.name}"/>
> >     <!-- TODO: move tests to version directory -->
> >     <!--antcall target="compile_secure_test" inheritRefs="false"
> > inheritAll="false">
> >       <param name="hadoop.version.ant-internal"
> > value="${hadoop.security.version}" />
> >       <param name="hadoop.version.ant-internal.prefix"
> > value="${hadoop.security.version.prefix}" />
> >     </antcall-->
> >   </target>
> >
> > Then, I commented off lines in blue, and it could generate the class file
> > of TestHadoop20SAuthBridge.
> > But if I change the security hadoop version to 1.0.0, it failed with:
> >
> > build_shims:
> >      [echo] Project: shims
> >      [echo] Compiling shims against hadoop 1.0.1-SNAPSHOT
> > (/home/libing/Round-1/hive-0.8.0/src/build/hadoopcore/IHC-1.0.1-SNAPSHOT)
> >
> > BUILD FAILED
> > /home/libing/Round-1/hive-0.8.0/src/build.xml:307: The following error
> > occurred while executing this line:
> > /home/libing/Round-1/hive-0.8.0/src/build.xml:325: The following error
> > occurred while executing this line:
> > /home/libing/Round-1/hive-0.8.0/src/shims/build.xml:76: The following
> error
> > occurred while executing this line:
> > /home/libing/Round-1/hive-0.8.0/src/shims/build.xml:66: srcdir
> > "/home/libing/Round-1/hive-0.8.0/src/shims/src/1.0/java" does not exist!
> >
> >
> > Does it mean that if we want to use a hadoop as hadoop.security.version,
> we
> > should keep a directory in shims/src/xxx by ourselves as well?
> >
> >
> > Thanks,
> > - Bing
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message