Re: native folder not found in hadoop-common build on Ubuntu

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: native folder not found in hadoop-common build on Ubuntu

John Zhuge-2
Hi Ping,

Thanks for using Hadoop. Linux is Unix-like. Hadoop supports native code on
Linux. Please read BUILDING.txt in the root of the Hadoop source tree.

Could you provide the entire Maven command line when you built Hadoop?

On Thu, Aug 31, 2017 at 3:06 PM, Ping Liu <[hidden email]> wrote:

> I built hadoop-common on Ubuntu in my VirtualBox.  But in target folder, I
> didn't find "native" folder that is supposed to contain the generated JNI
> header files for C.  On my Windows, native folder is found in target.
>
> As I check the POM file, I found "native build only supported on Mac or
> Unix".  Does this mean native is not supported on Linux?
>
> Thanks!
>
> Ping
>



--
John
Reply | Threaded
Open this post in threaded view
|

Re: native folder not found in hadoop-common build on Ubuntu

Ping Liu
Hi Ravi, John,

Thanks!  Yeah, it's the first profile.  Now as I tried the build with
-Pnative, I saw the build failure.  It complains for cmake.

It's also a requirement specified in BUILDING.txt that John pointed out.

Thanks!!

Ping



On Thu, Aug 31, 2017 at 4:03 PM, Ravi Prakash <[hidden email]> wrote:

> Please use -Pnative profile
>
> On Thu, Aug 31, 2017 at 3:53 PM, Ping Liu <[hidden email]> wrote:
>
>> Hi John,
>>
>> Thank you for your quick response.
>>
>> I used
>>
>> mvn clean install -DskipTests
>>
>> I just did a comparison with my Windows build result. winutils is missing
>> too.
>>
>> So both "native" and "winutils" folders are not generated in target
>> folder,
>> although it shows BUILD SUCCESS.
>>
>> Thanks.
>>
>> Ping
>>
>>
>>
>>
>>
>>
>>
>> On Thu, Aug 31, 2017 at 3:36 PM, John Zhuge <[hidden email]> wrote:
>>
>> > Hi Ping,
>> >
>> > Thanks for using Hadoop. Linux is Unix-like. Hadoop supports native code
>> > on Linux. Please read BUILDING.txt in the root of the Hadoop source
>> tree.
>> >
>> > Could you provide the entire Maven command line when you built Hadoop?
>> >
>> > On Thu, Aug 31, 2017 at 3:06 PM, Ping Liu <[hidden email]>
>> wrote:
>> >
>> >> I built hadoop-common on Ubuntu in my VirtualBox.  But in target
>> folder, I
>> >> didn't find "native" folder that is supposed to contain the generated
>> JNI
>> >> header files for C.  On my Windows, native folder is found in target.
>> >>
>> >> As I check the POM file, I found "native build only supported on Mac or
>> >> Unix".  Does this mean native is not supported on Linux?
>> >>
>> >> Thanks!
>> >>
>> >> Ping
>> >>
>> >
>> >
>> >
>> > --
>> > John
>> >
>>
>
>