[
https://issues.apache.org/jira/browse/HDFS-13822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16578445#comment-16578445
]
Pradeep Ambati commented on HDFS-13822:
---------------------------------------
Uploaded an initial patch. To solve the test file dependencies, I have added
dependencies in the CMakeLists.txt (of tests folder) which will then resolve
the dependencies in the Makefile generated during the build process. To
parallelize the builds, I have used the build-helper:cpu-count to retrieve the
number of CPUs and used this as default number of build threads.
In the HDFS-13362 comments, [~jlowe] suggested that we can use maven-cmake
plugin to parallelize the build automatically. This approach automatically
computes/retrieves the number of build threads obviates the need to use
build-helper:cpu-count. I have tried that approach and got the native build
running (parallel builds) but ctest for unit tests didn't work. Is there a way
for making ctest for unit tests work with maven-cmake plugin?
> speedup libhdfs++ build (enable parallel build)
> -----------------------------------------------
>
> Key: HDFS-13822
> URL: https://issues.apache.org/jira/browse/HDFS-13822
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Pradeep Ambati
> Priority: Minor
> Attachments: HDFS-13382.000.patch
>
>
> libhdfs++ has significantly increased clean build times for the native client
> on trunk. Problem is that libhdfs++ isn't build in parallel. When I tried to
> force a parallel build by specifying -Dnative_make_args=-j4, the build fails
> due to dependencies.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]