achennagiri opened a new pull request #3043:
URL: https://github.com/apache/hive/pull/3043


   The code to create a standalone beeline tarball was created as part of this 
ticket https://issues.apache.org/jira/browse/HIVE-24348. However, a bug was 
reported in the case when the beeline is tried to install without the hadoop 
installed. 
   The beeline script complains of missing dependencies when it is run. 
   
   Update:
   Was running in to the below error with the file mode on in Beeline
   
   ```
   Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.mapred.JobConf
       at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
       at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
   ```
   Added a fix to resolve this.
   
   ### What changes were proposed in this pull request?
   The beeline script can be run with/without hadoop installed. All the 
required dependencies are bundled into a single downloadable tar file. 
   `mvn clean package install -Pdist -Pitests -DskipTests -Denforcer.skip=true` 
generates something along the lines of 
   **apache-hive-beeline-4.0.0-SNAPSHOT.tar.gz** in the **packaging/target** 
folder.
   
   
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   
   ### How was this patch tested?
   
   Created a docker container using the command
   `sudo docker run  --rm -it -v /Users/achennagiri/Downloads:/container --user 
root docker-private.infra.cloudera.com/cloudera_base/ubi8/python-38:1-68 
/bin/bash`
   
   Need to install `yum install -y java-11-openjdk` java in the container. 


-- 
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to