You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/02/04 17:38:00 UTC

[jira] [Work logged] (HIVE-25750) Beeline: Creating a standalone tarball by isolating dependencies

     [ https://issues.apache.org/jira/browse/HIVE-25750?focusedWorklogId=721037&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-721037 ]

ASF GitHub Bot logged work on HIVE-25750:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 04/Feb/22 17:37
            Start Date: 04/Feb/22 17:37
    Worklog Time Spent: 10m 
      Work Description: achennagiri commented on a change in pull request #2824:
URL: https://github.com/apache/hive/pull/2824#discussion_r799676313



##########
File path: beeline/pom.xml
##########
@@ -233,6 +233,53 @@
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-shade-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>package</phase>
+            <goals>
+              <goal>shade</goal>
+            </goals>
+            <configuration>
+              <descriptorRefs>
+                <descriptorRef>jar-with-dependencies</descriptorRef>
+              </descriptorRefs>
+              <finalName>jar-with-dependencies</finalName>
+              <transformers>
+                <transformer implementation="com.github.edwgiz.mavenShadePlugin.log4j2CacheTransformer.PluginsCacheFileTransformer" />

Review comment:
       I was running in to this issue here https://stackoverflow.com/questions/48033792/log4j2-error-statuslogger-unrecognized-conversion-specifier
   Tried a bunch of things and this seemed to work.
   This piece of code already exists in hive codebase here https://github.com/apache/hive/blob/master/itests/hive-jmh/pom.xml#L102
   
   This happens because of an issue that exists in log4j2 https://issues.apache.org/jira/browse/LOG4J2-673
   This was the suggested workaround as mentioned in this https://stackoverflow.com/questions/34945438/log4j2-configuration-not-found-when-running-standalone-application-built-by-shad




-- 
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: gitbox-unsubscribe@hive.apache.org

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


Issue Time Tracking
-------------------

    Worklog Id:     (was: 721037)
    Time Spent: 40m  (was: 0.5h)

> 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
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 40m
>  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)