[
https://issues.apache.org/jira/browse/HIVE-25750?focusedWorklogId=733354&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-733354
]
ASF GitHub Bot logged work on HIVE-25750:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 25/Feb/22 21:28
Start Date: 25/Feb/22 21:28
Worklog Time Spent: 10m
Work Description: 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]
Issue Time Tracking
-------------------
Worklog Id: (was: 733354)
Time Spent: 3h (was: 2h 50m)
> Beeline: Creating a standalone tarball by isolating dependencies
> ----------------------------------------------------------------
>
> Key: HIVE-25750
> URL: https://issues.apache.org/jira/browse/HIVE-25750
> Project: Hive
> Issue Type: Bug
> Reporter: Abhay
> Assignee: Abhay
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
> Time Spent: 3h
> Remaining Estimate: 0h
>
> 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.
> The ask as part of this ticket is to fix that bug.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)