vivostar opened a new pull request, #1223:
URL: https://github.com/apache/bigtop/pull/1223

   <!--
     Thanks for sending a pull request!
       1. If this is your first time, please read our contributor guidelines: 
https://cwiki.apache.org/confluence/display/BIGTOP/How+to+Contribute
       2. Make sure your PR title starts with JIRA issue id, e.g., 
'BIGTOP-3638: Your PR title ...'.
   -->
   
   ### Description of PR
   
   According to the descussion on the 
[email](https://www.mail-archive.com/dev@bigtop.apache.org/msg26765.html),we 
should add a python path detecting script for all bigtop componets.
   
   
   ### How was this patch tested?
   
   1. build the bigtop-utils package
   ```shell
   docker run --rm -v `pwd`:/ws --workdir /ws bigtop/slaves:trunk-centos-7 bash 
-l -c './gradlew allclean ; ./gradlew bigtop-utils'
   ```
   
   2. make repo
   
   ```shell
   ./gradlew repo
   ```
   
   3. test bigtop-utils package by docker-hadoop.sh
   
   ```shell
   ./docker-hadoop.sh -dcp -d -k 'bigtop-utils' -L -r 
file:///bigtop-home/output -c 1
   ```
   
   4. login a container, and install python3 package from default distro repo 
or from source
   
   1) install from default repo
   ```shell
   yum install -y python3
   ```
   
   2) install from source
   
   ```shell
   # install build dependencies
   yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel 
sqlite-devel readline-devel
   yum install -y tk-devel gdbm-devel db4-devel libpcap-devel xz-devel 
libffi-devel
   # get python3 source code
   wget https://www.python.org/ftp/python/3.7.6/Python-3.7.6.tgz
   tar xzvf Python-3.7.6.tgz
   cd Python-3.7.6
   ./configure --prefix=/opt/python3
   make && make install
   ```
   
   5. check the python3 path detecting
   
   ```shell
   . /usr/lib/bigtop-utils/bigtop-detect-pythonpath
   echo $PAYTHON3_PATH
   ```
   
   ### For code changes:
   
   - [x] Does the title or this PR starts with the corresponding JIRA issue id 
(e.g. 'BIGTOP-3638. Your PR title ...')?
   - [x] Make sure that newly added files do not have any licensing issues. 
When in doubt refer to https://www.apache.org/licenses/


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to