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

   <!--
     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
   
   Apache Knox provides a gateway for interacting with the REST APIs and UIs of 
Apache Hadoop deployments.
   It's a crucial component in secure environments and therefore I thinks it 
should be part of the Bigtop stack.
   I can understand that it's maybe too late to add this to the into Bigtop 3.2 
BOM. If so, maybe we can add this to Bigtop 3.3?
   
   ### How was this patch tested?
   
   Build with:
   ```
   #CentOS
   docker run --rm -v `pwd`:/ws --workdir /ws bigtop/slaves:trunk-centos-7 bash 
-l -c './gradlew knox-clean knox-pkg yum'
   #Ubuntu
   docker run --rm -v `pwd`:/ws --workdir /ws bigtop/slaves:trunk-ubuntu-16.04 
bash -l -c './gradlew knox-clean knox-pkg repo'
   
   ```
   
   I created basic smoke tests:
   
   ```
   cd provisioner/docker
   # CentOS:
   ./docker-hadoop.sh --destroy
    ./docker-hadoop.sh --enable-local-repo --create 1 -C config_centos-7.yaml 
--stack knox --smoke-tests knox
   
   # Ubuntu:
   ./docker-hadoop.sh --destroy
   ./docker-hadoop.sh --enable-local-repo --create 1 -C 
config_ubuntu-20.04.yaml --stack knox --smoke-tests knox
   
   ```
   
   Further, the application can be tested by launching a basic LDAP server: 
   ```
   cd provisioner/docker
   ./docker-hadoop.sh --destroy
   ./docker-hadoop.sh --enable-local-repo --create 1 -C config_centos-7.yaml 
--stack knox
   ./docker-hadoop.sh --exec 1 sudo -u knox KNOX_LDAP_PID_DIR=/var/run/knox 
KNOX_LDAP_CONF_DIR=/etc/knox KNOX_LDAP_LOG_DIR=/var/log/knox 
KNOX_GATEWAY_DATA_DIR=/var/lib/knox/data /usr/lib/knox/bin/ldap.sh start
   ```
   Now, you can login by using the username/password combination 
admin:admin-password.
   By default, the application runs on port 8443


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to