You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by GitBox <gi...@apache.org> on 2022/07/23 14:02:11 UTC

[GitHub] [bigtop] timyuer opened a new pull request, #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

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

   <!--
     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
   BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack
   
   ### How was this patch tested?
   ![hive_check](https://user-images.githubusercontent.com/16263438/180608341-605108a4-68bc-4eb5-8451-807cf30e9204.png)
   
   ### For code changes:
   
   - [ ] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'BIGTOP-3638. Your PR title ...')?
   - [ ] 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-unsubscribe@bigtop.apache.org

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


[GitHub] [bigtop] kevinw66 commented on pull request #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

Posted by GitBox <gi...@apache.org>.
kevinw66 commented on PR #965:
URL: https://github.com/apache/bigtop/pull/965#issuecomment-1216059229

   > ```
   > >>WebHCat in Hive 3.1.3 is not compatible with Hadoop 3.3.x.
   > >>Related to https://github.com/apache/hive/pull/3520
   > ```
   > 
   > It looks good. But it seems the Hive upstream guys didn't give any prompt response to this PR, which maybe block our release. Could you please post a separate Jira/post in our Bigtop to fix this issues (`patch-x-Fix-WebHCat-xxx.diff `in [Hive path](https://github.com/apache/bigtop/tree/master/bigtop-packages/src/common/hive))correspondingly? Thanks, @kevinw66
   
   Sure


-- 
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-unsubscribe@bigtop.apache.org

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


[GitHub] [bigtop] timyuer commented on pull request #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

Posted by GitBox <gi...@apache.org>.
timyuer commented on PR #965:
URL: https://github.com/apache/bigtop/pull/965#issuecomment-1211736326

   > We upgraded Hadoop version to 3.3.4 in #964.
   >
   >Then the Hive depolyment is against on Hadoop-3.3.4.
   >
   >Failed to start `WebHCat Server`:
   >```bash
   >resource_management.core.exceptions.ExecutionFailed: Execution of 'cd /var/run/webhcat ; /usr/lib/hive-hcatalog/sbin/webhcat_server.sh start' returned 1. Lenght of string is >non zero
   >webhcat: starting ...
   >webhcat: /usr/lib/hadoop/bin/hadoop jar /usr/lib/hive-hcatalog/sbin/../share/webhcat/svr/lib/hive-webhcat-3.1.3.jar org.apache.hive.hcatalog.templeton.Main  
   >/usr/lib/hive-hcatalog/sbin/webhcat_server.sh: failed to start. Check logs in  /var/log/webhcat
   >```
   >```bash
   >2022-08-08 06:33:09,263 - Execute['cd /var/run/webhcat ; /usr/lib/hive-hcatalog/sbin/webhcat_server.sh start'] {'environment': {'HIVE_HOME': '/usr/lib/hive'}, 'not_if': 'ls />var/run/webhcat/webhcat.pid >/dev/null 2>&1 && ps -p `cat /var/run/webhcat/webhcat.pid` >/dev/null 2>&1', 'user': 'hcat'}
   >2022-08-08 06:33:19,463 - Execute['find /var/log/webhcat -maxdepth 1 -type f -name '*' -exec echo '==> {} <==' \; -exec tail -n 40 {} \;'] {'logoutput': True, >'ignore_failures': True, 'user': 'hcat'}
   >==> /var/log/webhcat/webhcat-console-error.log <==
   >SLF4J: Class path contains multiple SLF4J bindings.
   >SLF4J: Found binding in [jar:file:/usr/lib/hive/lib/log4j-slf4j-impl-2.17.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
   >SLF4J: Found binding in [jar:file:/usr/lib/hadoop/lib/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class]
   >SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
   >SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
   >templeton: Server failed to start: Authentication type must be specified: simple|kerberos|<class>
   >==> /var/log/webhcat/webhcat.log <==
   >INFO  | 08 Aug 2022 06:33:12,392 | org.apache.curator.framework.imps.CuratorFrameworkImpl | backgroundOperationsLoop exiting
   >INFO  | 08 Aug 2022 06:33:12,437 | com.sun.jersey.api.core.ScanningResourceConfig | Root resource classes found:
   >  class org.apache.hive.hcatalog.templeton.Server
   >INFO  | 08 Aug 2022 06:33:12,437 | com.sun.jersey.api.core.ScanningResourceConfig | Provider classes found:
   >  class org.apache.hive.hcatalog.templeton.CatchallExceptionMapper
   >  class org.apache.hive.hcatalog.templeton.SimpleExceptionMapper
   >INFO  | 08 Aug 2022 06:33:12,443 | org.eclipse.jetty.server.Server | jetty-9.3.20.v20170531
   >INFO  | 08 Aug 2022 06:33:12,525 | org.apache.hive.hcatalog.templeton.tool.ZooKeeperCleanup | Next execution: Mon Aug 08 06:38:09 UTC 2022
   >INFO  | 08 Aug 2022 06:33:12,599 | com.sun.jersey.server.impl.application.WebApplicationImpl | Initiating Jersey application, version 'Jersey: 1.19 02/11/2015 03:25 AM'
   >INFO  | 08 Aug 2022 06:33:13,005 | com.sun.jersey.api.wadl.config.WadlGeneratorLoader | Loading wadlGenerator com.sun.jersey.server.wadl.generators.resourcedoc.>WadlGeneratorResourceDocSupport
   >INFO  | 08 Aug 2022 06:33:13,473 | org.eclipse.jetty.server.AbstractConnector | Started ServerConnector@15dd5ac2{HTTP/1.1,[http/1.1]}{0.0.0.0:50111}
   >ERROR | 08 Aug 2022 06:33:13,474 | org.apache.hive.hcatalog.templeton.Main | Server failed to start: 
   >javax.servlet.ServletException: Authentication type must be specified: simple|kerberos|<class>
   >	at org.apache.hadoop.security.authentication.server.AuthenticationFilter.init(AuthenticationFilter.java:164) ~[hadoop-auth-3.3.4.jar:?]
   >	at org.apache.hadoop.security.authentication.server.ProxyUserAuthenticationFilter.init(ProxyUserAuthenticationFilter.java:57) ~[hadoop-common-3.3.4.jar:?]
   >	at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:139) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   >	at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:873) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   >	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:349) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   >	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:778) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   >	at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:262) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   >	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   >	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   >	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   >	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   >	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   >	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   >	at org.eclipse.jetty.server.Server.start(Server.java:422) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   >	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   >	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   >	at org.eclipse.jetty.server.Server.doStart(Server.java:389) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   >	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   >	at org.apache.hive.hcatalog.templeton.Main.runServer(Main.java:235) ~[hive-webhcat-3.1.3.jar:3.1.3]
   >	at org.apache.hive.hcatalog.templeton.Main.run(Main.java:134) [hive-webhcat-3.1.3.jar:3.1.3]
   >	at org.apache.hive.hcatalog.templeton.Main.main(Main.java:345) [hive-webhcat-3.1.3.jar:3.1.3]
   >	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_342]
   >	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_342]
   >	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_342]
   >	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_342]
   >	at org.apache.hadoop.util.RunJar.run(RunJar.java:323) [hadoop-common-3.3.4.jar:?]
   >	at org.apache.hadoop.util.RunJar.main(RunJar.java:236) [hadoop-common-3.3.4.jar:?]
   >==> /var/log/webhcat/webhcat-console.log <==
   >```
   
   
   @guyuqi 
   I have the same problem when starting `WebHCat Server`.
   And I would like to ask if you have encountered the following problems when starting `Hive Metastore` .
   ```bash
   [hive@ambari-agent-02 bin]$ /usr/lib/hive/bin/hive --service metastore
   2022-08-11 08:49:15: Starting Hive Metastore Server
   SLF4J: Class path contains multiple SLF4J bindings.
   SLF4J: Found binding in [jar:file:/usr/lib/hive/lib/log4j-slf4j-impl-2.17.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
   SLF4J: Found binding in [jar:file:/usr/lib/hadoop/lib/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class]
   SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
   SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
   MetaException(message:org.apache.hadoop.fs.FsTracer.get(Lorg/apache/hadoop/conf/Configuration;)Lorg/apache/htrace/core/Tracer;)
   	at org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:84)
   	at org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:93)
   	at org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:8672)
   	at org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:8667)
   	at org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:8937)
   	at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:8854)
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   	at org.apache.hadoop.util.RunJar.run(RunJar.java:323)
   	at org.apache.hadoop.util.RunJar.main(RunJar.java:236)
   Caused by: java.lang.NoSuchMethodError: org.apache.hadoop.fs.FsTracer.get(Lorg/apache/hadoop/conf/Configuration;)Lorg/apache/htrace/core/Tracer;
   	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:306)
   	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:291)
   	at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:173)
   	at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3469)
   	at org.apache.hadoop.fs.FileSystem.access$300(FileSystem.java:174)
   	at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3574)
   	at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3521)
   	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:540)
   	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:288)
   	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:524)
   	at org.apache.hadoop.fs.Path.getFileSystem(Path.java:365)
   	at org.apache.hadoop.hive.metastore.Warehouse.getFs(Warehouse.java:115)
   	at org.apache.hadoop.hive.metastore.Warehouse.getDnsPath(Warehouse.java:141)
   	at org.apache.hadoop.hive.metastore.Warehouse.getDnsPath(Warehouse.java:147)
   	at org.apache.hadoop.hive.metastore.Warehouse.getWhRoot(Warehouse.java:160)
   	at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultCatalog(HiveMetaStore.java:738)
   	at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultDB(HiveMetaStore.java:770)
   	at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:540)
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   	at org.apache.hadoop.hive.metastore.RetryingHMSHandler.invokeInternal(RetryingHMSHandler.java:147)
   	at org.apache.hadoop.hive.metastore.RetryingHMSHandler.invoke(RetryingHMSHandler.java:108)
   	at org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:80)
   	... 11 more
   Exception in thread "main" MetaException(message:org.apache.hadoop.fs.FsTracer.get(Lorg/apache/hadoop/conf/Configuration;)Lorg/apache/htrace/core/Tracer;)
   	at org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:84)
   	at org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:93)
   	at org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:8672)
   	at org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:8667)
   	at org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:8937)
   	at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:8854)
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   	at org.apache.hadoop.util.RunJar.run(RunJar.java:323)
   	at org.apache.hadoop.util.RunJar.main(RunJar.java:236)
   Caused by: java.lang.NoSuchMethodError: org.apache.hadoop.fs.FsTracer.get(Lorg/apache/hadoop/conf/Configuration;)Lorg/apache/htrace/core/Tracer;
   	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:306)
   	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:291)
   	at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:173)
   	at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3469)
   	at org.apache.hadoop.fs.FileSystem.access$300(FileSystem.java:174)
   	at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3574)
   	at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3521)
   	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:540)
   	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:288)
   	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:524)
   	at org.apache.hadoop.fs.Path.getFileSystem(Path.java:365)
   	at org.apache.hadoop.hive.metastore.Warehouse.getFs(Warehouse.java:115)
   	at org.apache.hadoop.hive.metastore.Warehouse.getDnsPath(Warehouse.java:141)
   	at org.apache.hadoop.hive.metastore.Warehouse.getDnsPath(Warehouse.java:147)
   	at org.apache.hadoop.hive.metastore.Warehouse.getWhRoot(Warehouse.java:160)
   	at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultCatalog(HiveMetaStore.java:738)
   	at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultDB(HiveMetaStore.java:770)
   	at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:540)
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   	at org.apache.hadoop.hive.metastore.RetryingHMSHandler.invokeInternal(RetryingHMSHandler.java:147)
   	at org.apache.hadoop.hive.metastore.RetryingHMSHandler.invoke(RetryingHMSHandler.java:108)
   	at org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:80)
   	... 11 more
   ```
   
   Environment:
   hadoop-3.3.4
   hive-3.1.3(I did not install Hive using Ambari)
   tez-0.10.1
   
   Thanks.


-- 
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-unsubscribe@bigtop.apache.org

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


[GitHub] [bigtop] guyuqi commented on pull request #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

Posted by GitBox <gi...@apache.org>.
guyuqi commented on PR #965:
URL: https://github.com/apache/bigtop/pull/965#issuecomment-1207707090

   Failed to start `Hive Metastore`.
   
   It seems `setup-hive-service.sh` setup database on ambari-server. What about to ambari-agents? 
   
   ```
   Metastore connection URL:	 jdbc:mysql://ambari-server/3306/hive
   Metastore Connection Driver :	 com.mysql.jdbc.Driver
   Metastore connection User:	 hive
   org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.
   Underlying cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException : Unknown database '3306/hive'
   SQL Error code: 1049
   org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.
   	at org.apache.hadoop.hive.metastore.tools.HiveSchemaHelper.getConnectionToMetastore(HiveSchemaHelper.java:94)
   	at org.apache.hive.beeline.HiveSchemaTool.getConnectionToMetastore(HiveS
   ```


-- 
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-unsubscribe@bigtop.apache.org

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


[GitHub] [bigtop] guyuqi commented on pull request #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

Posted by GitBox <gi...@apache.org>.
guyuqi commented on PR #965:
URL: https://github.com/apache/bigtop/pull/965#issuecomment-1211599018

   > > Hadoop-3.3.4 centos-7 rpms:
   > > `https://ci.bigtop.apache.org/job/Bigtop-trunk-snapshot/DISTRO=centos-7,PLATFORM=amd64-slave/ws/output/hadoop/`
   > > @guyuqi
   > > Could you please offer Hive-3.1.3 centos-7 rpms?  Thanks.
   
   Hive rpms: https://drive.google.com/file/d/1hpNekD2XkHg5BRalbLYLXBU1PJ_phF67/view?usp=sharing


-- 
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-unsubscribe@bigtop.apache.org

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


[GitHub] [bigtop] guyuqi commented on pull request #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

Posted by GitBox <gi...@apache.org>.
guyuqi commented on PR #965:
URL: https://github.com/apache/bigtop/pull/965#issuecomment-1203498501

   @timyuer 
   May I ask: 
   1. which Hive database do you take: MySQL , PostreSQL or Oracle?
   2. How to configure it properly?
   
   And it's better to give more info about what the other dependencies are for hive deployment.
   
   Otherwise, it failed to start Hive Metastore.( Hive database: PostreSQL )
   r```
   esource_management.core.exceptions.ExecutionFailed: Execution of 'export HIVE_CONF_DIR=/etc/hive/conf ; /usr/lib/hive/bin/schematool -initSchema -dbType postgres -userName hive -passWord [PROTECTED] -verbose' returned 1. SLF4J: Class path contains multiple SLF4J bindings.
   SLF4J: Found binding in [jar:file:/usr/lib/hive/lib/log4j-slf4j-impl-2.17.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
   SLF4J: Found binding in [jar:file:/usr/lib/hadoop/lib/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class]
   SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
   SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
   Metastore connection URL:	 ://ambari-agent-02postgresql:5432/hive
   Metastore Connection Driver :	 org.postgresql.Driver
   Metastore connection User:	 hive
   org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.
   Underlying cause: java.sql.SQLException : No suitable driver found for ://ambari-agent-02postgresql:5432/hive
   SQL Error code: 0
   org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.
   	at org.apache.hadoop.hive.metastore.tools.HiveSchemaHelper.getConnectionToMetastore(HiveSchemaHelper.j
   ```
   
   


-- 
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-unsubscribe@bigtop.apache.org

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


[GitHub] [bigtop] timyuer commented on pull request #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

Posted by GitBox <gi...@apache.org>.
timyuer commented on PR #965:
URL: https://github.com/apache/bigtop/pull/965#issuecomment-1207126697

   Done. Thanks.


-- 
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-unsubscribe@bigtop.apache.org

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


[GitHub] [bigtop] kevinw66 commented on pull request #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

Posted by GitBox <gi...@apache.org>.
kevinw66 commented on PR #965:
URL: https://github.com/apache/bigtop/pull/965#issuecomment-1214158360

   > We upgraded Hadoop version to 3.3.4 in #964.
   > 
   > Then the Hive depolyment is against on Hadoop-3.3.4.
   > 
   > Failed to start `WebHCat Server`:
   > 
   > ```
   > resource_management.core.exceptions.ExecutionFailed: Execution of 'cd /var/run/webhcat ; /usr/lib/hive-hcatalog/sbin/webhcat_server.sh start' returned 1. Lenght of string is non zero
   > webhcat: starting ...
   > webhcat: /usr/lib/hadoop/bin/hadoop jar /usr/lib/hive-hcatalog/sbin/../share/webhcat/svr/lib/hive-webhcat-3.1.3.jar org.apache.hive.hcatalog.templeton.Main  
   > /usr/lib/hive-hcatalog/sbin/webhcat_server.sh: failed to start. Check logs in  /var/log/webhcat
   > ```
   > 
   > ```
   > 2022-08-08 06:33:09,263 - Execute['cd /var/run/webhcat ; /usr/lib/hive-hcatalog/sbin/webhcat_server.sh start'] {'environment': {'HIVE_HOME': '/usr/lib/hive'}, 'not_if': 'ls /var/run/webhcat/webhcat.pid >/dev/null 2>&1 && ps -p `cat /var/run/webhcat/webhcat.pid` >/dev/null 2>&1', 'user': 'hcat'}
   > 2022-08-08 06:33:19,463 - Execute['find /var/log/webhcat -maxdepth 1 -type f -name '*' -exec echo '==> {} <==' \; -exec tail -n 40 {} \;'] {'logoutput': True, 'ignore_failures': True, 'user': 'hcat'}
   > ==> /var/log/webhcat/webhcat-console-error.log <==
   > SLF4J: Class path contains multiple SLF4J bindings.
   > SLF4J: Found binding in [jar:file:/usr/lib/hive/lib/log4j-slf4j-impl-2.17.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
   > SLF4J: Found binding in [jar:file:/usr/lib/hadoop/lib/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class]
   > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
   > SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
   > templeton: Server failed to start: Authentication type must be specified: simple|kerberos|<class>
   > ==> /var/log/webhcat/webhcat.log <==
   > INFO  | 08 Aug 2022 06:33:12,392 | org.apache.curator.framework.imps.CuratorFrameworkImpl | backgroundOperationsLoop exiting
   > INFO  | 08 Aug 2022 06:33:12,437 | com.sun.jersey.api.core.ScanningResourceConfig | Root resource classes found:
   >   class org.apache.hive.hcatalog.templeton.Server
   > INFO  | 08 Aug 2022 06:33:12,437 | com.sun.jersey.api.core.ScanningResourceConfig | Provider classes found:
   >   class org.apache.hive.hcatalog.templeton.CatchallExceptionMapper
   >   class org.apache.hive.hcatalog.templeton.SimpleExceptionMapper
   > INFO  | 08 Aug 2022 06:33:12,443 | org.eclipse.jetty.server.Server | jetty-9.3.20.v20170531
   > INFO  | 08 Aug 2022 06:33:12,525 | org.apache.hive.hcatalog.templeton.tool.ZooKeeperCleanup | Next execution: Mon Aug 08 06:38:09 UTC 2022
   > INFO  | 08 Aug 2022 06:33:12,599 | com.sun.jersey.server.impl.application.WebApplicationImpl | Initiating Jersey application, version 'Jersey: 1.19 02/11/2015 03:25 AM'
   > INFO  | 08 Aug 2022 06:33:13,005 | com.sun.jersey.api.wadl.config.WadlGeneratorLoader | Loading wadlGenerator com.sun.jersey.server.wadl.generators.resourcedoc.WadlGeneratorResourceDocSupport
   > INFO  | 08 Aug 2022 06:33:13,473 | org.eclipse.jetty.server.AbstractConnector | Started ServerConnector@15dd5ac2{HTTP/1.1,[http/1.1]}{0.0.0.0:50111}
   > ERROR | 08 Aug 2022 06:33:13,474 | org.apache.hive.hcatalog.templeton.Main | Server failed to start: 
   > javax.servlet.ServletException: Authentication type must be specified: simple|kerberos|<class>
   > 	at org.apache.hadoop.security.authentication.server.AuthenticationFilter.init(AuthenticationFilter.java:164) ~[hadoop-auth-3.3.4.jar:?]
   > 	at org.apache.hadoop.security.authentication.server.ProxyUserAuthenticationFilter.init(ProxyUserAuthenticationFilter.java:57) ~[hadoop-common-3.3.4.jar:?]
   > 	at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:139) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   > 	at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:873) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   > 	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:349) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   > 	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:778) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   > 	at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:262) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   > 	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   > 	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   > 	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   > 	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   > 	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   > 	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   > 	at org.eclipse.jetty.server.Server.start(Server.java:422) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   > 	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   > 	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   > 	at org.eclipse.jetty.server.Server.doStart(Server.java:389) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   > 	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   > 	at org.apache.hive.hcatalog.templeton.Main.runServer(Main.java:235) ~[hive-webhcat-3.1.3.jar:3.1.3]
   > 	at org.apache.hive.hcatalog.templeton.Main.run(Main.java:134) [hive-webhcat-3.1.3.jar:3.1.3]
   > 	at org.apache.hive.hcatalog.templeton.Main.main(Main.java:345) [hive-webhcat-3.1.3.jar:3.1.3]
   > 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_342]
   > 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_342]
   > 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_342]
   > 	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_342]
   > 	at org.apache.hadoop.util.RunJar.run(RunJar.java:323) [hadoop-common-3.3.4.jar:?]
   > 	at org.apache.hadoop.util.RunJar.main(RunJar.java:236) [hadoop-common-3.3.4.jar:?]
   > ==> /var/log/webhcat/webhcat-console.log <==
   > ```
   
   WebHCat in Hive 3.1.3 is not compatible with Hadoop 3.3.x.
   Related to [HIVE-3520](https://github.com/apache/hive/pull/3520)


-- 
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-unsubscribe@bigtop.apache.org

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


[GitHub] [bigtop] guyuqi commented on pull request #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

Posted by GitBox <gi...@apache.org>.
guyuqi commented on PR #965:
URL: https://github.com/apache/bigtop/pull/965#issuecomment-1207754357

   @kevinw66 
   
   ```
   Execution failed for task ':hadoop-download'.
   > Not Found (HTTP status code: 404, URL: https://archive.apache.org/dist//hadoop/hadoop-3.3.4-RC1/hadoop-3.3.4-src.tar.gz)
   ```
   Masatake just pushed addendum commit (https://github.com/apache/bigtop/commit/17fc6eaa9a33241b4d3a7e917b110201d54a893) for Hadoop-3.3.4 to update `download_path` and `site` to make it point to released artifact.
   
   The download issues would be fixed after the source tree sync.
   


-- 
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-unsubscribe@bigtop.apache.org

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


[GitHub] [bigtop] guyuqi commented on pull request #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

Posted by GitBox <gi...@apache.org>.
guyuqi commented on PR #965:
URL: https://github.com/apache/bigtop/pull/965#issuecomment-1216058124

   ```
   >>WebHCat in Hive 3.1.3 is not compatible with Hadoop 3.3.x.
   >>Related to https://github.com/apache/hive/pull/3520
   ```
   
   It looks good. But it seems the Hive upstream guys didn't give any prompt response to this PR, which maybe block our release.
   Could you please post a separate Jira/post in our Bigtop to fix this issues (`patch-x-Fix-WebHCat-xxx.diff `in [Hive path](https://github.com/apache/bigtop/tree/master/bigtop-packages/src/common/hive))correspondingly? 
   Thanks, @kevinw66 
   
   


-- 
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-unsubscribe@bigtop.apache.org

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


[GitHub] [bigtop] brahmareddybattula commented on a diff in pull request #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

Posted by GitBox <gi...@apache.org>.
brahmareddybattula commented on code in PR #965:
URL: https://github.com/apache/bigtop/pull/965#discussion_r928163437


##########
bigtop-packages/src/common/bigtop-ambari-mpack/bgtp-ambari-mpack/src/main/resources/stacks/BGTP/1.0/services/HIVE/configuration/hive-env.xml:
##########
@@ -0,0 +1,427 @@
+<?xml version="1.0"?>
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+<!--
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+<configuration supports_adding_forbidden="true">
+  <property>
+    <name>hive.atlas.hook</name>
+    <value>false</value>
+    <display-name>Enable Atlas Hook</display-name>
+    <description>Enable Atlas Hook</description>
+    <value-attributes>
+      <type>boolean</type>
+      <overridable>false</overridable>
+    </value-attributes>
+    <on-ambari-upgrade add="false"/>
+    <depends-on>
+      <property>
+        <type>application-properties</type>
+        <name>atlas.rest.address</name>
+      </property>
+    </depends-on>
+  </property>
+  <property>
+    <name>hive.metastore.heapsize</name>
+    <value>1024</value>
+    <description>Hive Metastore Java heap size</description>
+    <display-name>Metastore Heap Size</display-name>
+    <value-attributes>
+      <type>int</type>
+      <minimum>512</minimum>
+      <maximum>2048</maximum>
+      <unit>MB</unit>
+      <increment-step>512</increment-step>
+    </value-attributes>
+    <on-ambari-upgrade add="false"/>
+  </property>
+  <property>
+    <name>hive_database_type</name>
+    <value>mysql</value>
+    <display-name>Hive Database Type</display-name>
+    <description>Default HIVE DB type.</description>
+    <value-attributes>
+      <overridable>false</overridable>
+    </value-attributes>
+    <depends-on>
+      <property>
+        <type>hive-env</type>
+        <name>hive_database</name>
+      </property>
+    </depends-on>
+    <on-ambari-upgrade add="false"/>
+  </property>
+  <property>
+    <name>hive_ambari_database</name>
+    <value>MySQL</value>
+    <description>Database type.</description>
+    <deleted>true</deleted>
+    <on-ambari-upgrade add="false"/>
+  </property>
+  <property>
+    <name>hive_database_name</name>
+    <value>hive</value>
+    <description>Database name.</description>
+    <value-attributes>
+      <type>database</type>
+      <visible>false</visible>
+      <editable-only-at-install>true</editable-only-at-install>
+      <overridable>false</overridable>
+    </value-attributes>
+    <on-ambari-upgrade add="false"/>
+  </property>
+  <property>
+    <name>hive_log_dir</name>
+    <value>/var/log/hive</value>
+    <display-name>Hive Log Dir</display-name>
+    <description>Directory for Hive Log files.</description>
+    <value-attributes>
+      <type>directory</type>
+      <overridable>false</overridable>
+    </value-attributes>
+    <on-ambari-upgrade add="false"/>
+  </property>
+  <property>
+    <name>hive_pid_dir</name>
+    <value>/var/run/hive</value>
+    <display-name>Hive PID Dir</display-name>
+    <description>Hive PID Dir.</description>
+    <value-attributes>
+      <type>directory</type>
+      <overridable>false</overridable>
+      <editable-only-at-install>true</editable-only-at-install>
+    </value-attributes>
+    <on-ambari-upgrade add="false"/>
+  </property>
+  <property>
+    <name>hive_user</name>
+    <display-name>Hive User</display-name>
+    <value>hive</value>
+    <property-type>USER</property-type>
+    <description>Hive User.</description>
+    <value-attributes>
+      <type>user</type>
+      <overridable>false</overridable>
+      <user-groups>
+        <property>
+          <type>cluster-env</type>
+          <name>user_group</name>
+        </property>
+      </user-groups>
+    </value-attributes>
+    <on-ambari-upgrade add="false"/>
+  </property>
+  <!--HCAT-->
+  <property>
+    <name>hcat_log_dir</name>
+    <value>/var/log/webhcat</value>
+    <display-name>WebHCat Log Dir</display-name>
+    <description>WebHCat Log Dir.</description>
+    <value-attributes>
+      <type>directory</type>
+      <overridable>false</overridable>
+    </value-attributes>
+    <on-ambari-upgrade add="true"/>
+  </property>
+  <property>
+    <name>hcat_pid_dir</name>
+    <value>/var/run/webhcat</value>
+    <display-name>WebHCat Pid Dir</display-name>
+    <description>WebHCat Pid Dir.</description>
+    <value-attributes>
+      <type>directory</type>
+      <overridable>false</overridable>
+      <editable-only-at-install>true</editable-only-at-install>
+    </value-attributes>
+    <on-ambari-upgrade add="true"/>
+  </property>
+  <property>
+    <name>webhcat_user</name>
+    <display-name>WebHCat User</display-name>
+    <value>hcat</value>
+    <property-type>USER</property-type>
+    <description>WebHCat User.</description>
+    <value-attributes>
+      <type>user</type>
+      <overridable>false</overridable>
+      <user-groups>
+        <property>
+          <type>cluster-env</type>
+          <name>user_group</name>
+        </property>
+      </user-groups>
+    </value-attributes>
+    <on-ambari-upgrade add="true"/>
+  </property>
+  <property>
+    <name>hive_user_nofile_limit</name>
+    <value>32000</value>
+    <description>Max open files limit setting for HIVE user.</description>
+    <on-ambari-upgrade add="false"/>
+  </property>
+  <property>
+    <name>hive_user_nproc_limit</name>
+    <value>16000</value>
+    <description>Max number of processes limit setting for HIVE user.</description>
+    <on-ambari-upgrade add="false"/>
+  </property>
+  <property>
+    <name>hive.heapsize</name>
+    <value>512</value>

Review Comment:
   512 will be small..? can it be 1024 or 2048 for hiveserver2..?



-- 
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-unsubscribe@bigtop.apache.org

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


[GitHub] [bigtop] kevinw66 commented on pull request #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

Posted by GitBox <gi...@apache.org>.
kevinw66 commented on PR #965:
URL: https://github.com/apache/bigtop/pull/965#issuecomment-1207759931

   > @kevinw66
   > 
   > ```
   > Execution failed for task ':hadoop-download'.
   > > Not Found (HTTP status code: 404, URL: https://archive.apache.org/dist//hadoop/hadoop-3.3.4-RC1/hadoop-3.3.4-src.tar.gz)
   > ```
   > 
   > Masatake just pushed addendum commit ([17fc6ea](https://github.com/apache/bigtop/commit/17fc6eaa9a33241b4d3a7e917b110201d54a893)) for Hadoop-3.3.4 to update `download_path` and `site` to make it point to released artifact.
   > 
   > The download issues would be fixed after the source tree sync.
   
   @guyuqi Yes, but we need help to trigger the job manually, otherwise we have to wait until tomorrow(the job was set to build everyday).


-- 
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-unsubscribe@bigtop.apache.org

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


[GitHub] [bigtop] kevinw66 commented on pull request #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

Posted by GitBox <gi...@apache.org>.
kevinw66 commented on PR #965:
URL: https://github.com/apache/bigtop/pull/965#issuecomment-1207745855

   @guyuqi 
   The snapshot packages build job still fails in jenkins:
   https://ci.bigtop.apache.org/job/Bigtop-trunk-snapshot/DISTRO=centos-7,PLATFORM=amd64-slave/
   
   We have to fix it before test 3.2.0 stack


-- 
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-unsubscribe@bigtop.apache.org

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


[GitHub] [bigtop] timyuer commented on pull request #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

Posted by GitBox <gi...@apache.org>.
timyuer commented on PR #965:
URL: https://github.com/apache/bigtop/pull/965#issuecomment-1211512692

   > Hadoop-3.3.4 centos-7 rpms:
   > `https://ci.bigtop.apache.org/job/Bigtop-trunk-snapshot/DISTRO=centos-7,PLATFORM=amd64-slave/ws/output/hadoop/`
   @guyuqi 
   Could you please give Hive-3.1.3 centos-7 rpms?  Thanks.


-- 
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-unsubscribe@bigtop.apache.org

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


[GitHub] [bigtop] timyuer commented on a diff in pull request #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

Posted by GitBox <gi...@apache.org>.
timyuer commented on code in PR #965:
URL: https://github.com/apache/bigtop/pull/965#discussion_r928337314


##########
bigtop-packages/src/common/bigtop-ambari-mpack/bgtp-ambari-mpack/src/main/resources/stacks/BGTP/1.0/services/HIVE/configuration/hive-env.xml:
##########
@@ -0,0 +1,427 @@
+<?xml version="1.0"?>
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+<!--
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+<configuration supports_adding_forbidden="true">
+  <property>
+    <name>hive.atlas.hook</name>
+    <value>false</value>
+    <display-name>Enable Atlas Hook</display-name>
+    <description>Enable Atlas Hook</description>
+    <value-attributes>
+      <type>boolean</type>
+      <overridable>false</overridable>
+    </value-attributes>
+    <on-ambari-upgrade add="false"/>
+    <depends-on>
+      <property>
+        <type>application-properties</type>
+        <name>atlas.rest.address</name>
+      </property>
+    </depends-on>
+  </property>
+  <property>
+    <name>hive.metastore.heapsize</name>
+    <value>1024</value>
+    <description>Hive Metastore Java heap size</description>
+    <display-name>Metastore Heap Size</display-name>
+    <value-attributes>
+      <type>int</type>
+      <minimum>512</minimum>
+      <maximum>2048</maximum>
+      <unit>MB</unit>
+      <increment-step>512</increment-step>
+    </value-attributes>
+    <on-ambari-upgrade add="false"/>
+  </property>
+  <property>
+    <name>hive_database_type</name>
+    <value>mysql</value>
+    <display-name>Hive Database Type</display-name>
+    <description>Default HIVE DB type.</description>
+    <value-attributes>
+      <overridable>false</overridable>
+    </value-attributes>
+    <depends-on>
+      <property>
+        <type>hive-env</type>
+        <name>hive_database</name>
+      </property>
+    </depends-on>
+    <on-ambari-upgrade add="false"/>
+  </property>
+  <property>
+    <name>hive_ambari_database</name>
+    <value>MySQL</value>
+    <description>Database type.</description>
+    <deleted>true</deleted>
+    <on-ambari-upgrade add="false"/>
+  </property>
+  <property>
+    <name>hive_database_name</name>
+    <value>hive</value>
+    <description>Database name.</description>
+    <value-attributes>
+      <type>database</type>
+      <visible>false</visible>
+      <editable-only-at-install>true</editable-only-at-install>
+      <overridable>false</overridable>
+    </value-attributes>
+    <on-ambari-upgrade add="false"/>
+  </property>
+  <property>
+    <name>hive_log_dir</name>
+    <value>/var/log/hive</value>
+    <display-name>Hive Log Dir</display-name>
+    <description>Directory for Hive Log files.</description>
+    <value-attributes>
+      <type>directory</type>
+      <overridable>false</overridable>
+    </value-attributes>
+    <on-ambari-upgrade add="false"/>
+  </property>
+  <property>
+    <name>hive_pid_dir</name>
+    <value>/var/run/hive</value>
+    <display-name>Hive PID Dir</display-name>
+    <description>Hive PID Dir.</description>
+    <value-attributes>
+      <type>directory</type>
+      <overridable>false</overridable>
+      <editable-only-at-install>true</editable-only-at-install>
+    </value-attributes>
+    <on-ambari-upgrade add="false"/>
+  </property>
+  <property>
+    <name>hive_user</name>
+    <display-name>Hive User</display-name>
+    <value>hive</value>
+    <property-type>USER</property-type>
+    <description>Hive User.</description>
+    <value-attributes>
+      <type>user</type>
+      <overridable>false</overridable>
+      <user-groups>
+        <property>
+          <type>cluster-env</type>
+          <name>user_group</name>
+        </property>
+      </user-groups>
+    </value-attributes>
+    <on-ambari-upgrade add="false"/>
+  </property>
+  <!--HCAT-->
+  <property>
+    <name>hcat_log_dir</name>
+    <value>/var/log/webhcat</value>
+    <display-name>WebHCat Log Dir</display-name>
+    <description>WebHCat Log Dir.</description>
+    <value-attributes>
+      <type>directory</type>
+      <overridable>false</overridable>
+    </value-attributes>
+    <on-ambari-upgrade add="true"/>
+  </property>
+  <property>
+    <name>hcat_pid_dir</name>
+    <value>/var/run/webhcat</value>
+    <display-name>WebHCat Pid Dir</display-name>
+    <description>WebHCat Pid Dir.</description>
+    <value-attributes>
+      <type>directory</type>
+      <overridable>false</overridable>
+      <editable-only-at-install>true</editable-only-at-install>
+    </value-attributes>
+    <on-ambari-upgrade add="true"/>
+  </property>
+  <property>
+    <name>webhcat_user</name>
+    <display-name>WebHCat User</display-name>
+    <value>hcat</value>
+    <property-type>USER</property-type>
+    <description>WebHCat User.</description>
+    <value-attributes>
+      <type>user</type>
+      <overridable>false</overridable>
+      <user-groups>
+        <property>
+          <type>cluster-env</type>
+          <name>user_group</name>
+        </property>
+      </user-groups>
+    </value-attributes>
+    <on-ambari-upgrade add="true"/>
+  </property>
+  <property>
+    <name>hive_user_nofile_limit</name>
+    <value>32000</value>
+    <description>Max open files limit setting for HIVE user.</description>
+    <on-ambari-upgrade add="false"/>
+  </property>
+  <property>
+    <name>hive_user_nproc_limit</name>
+    <value>16000</value>
+    <description>Max number of processes limit setting for HIVE user.</description>
+    <on-ambari-upgrade add="false"/>
+  </property>
+  <property>
+    <name>hive.heapsize</name>
+    <value>512</value>

Review Comment:
   Thanks, now wen haven't move Ambari select packages to Bigtop, so it still use `hive.heapsize` in hive-site.xml,
   and it's default value is 1024.
   hive-site.xml
   ```xml
     <property>
       <name>hive.heapsize</name>
       <value>1024</value>
       <description>Hive Java heap size</description>
   ```
   params.py
   ```bash
   if check_stack_feature(StackFeature.HIVE_ENV_HEAPSIZE, version_for_stack_feature_checks):
     hive_heapsize = config['configurations']['hive-env']['hive.heapsize']
   else:
     hive_heapsize = config['configurations']['hive-site']['hive.heapsize']
   ```



-- 
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-unsubscribe@bigtop.apache.org

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


[GitHub] [bigtop] kevinw66 commented on pull request #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

Posted by GitBox <gi...@apache.org>.
kevinw66 commented on PR #965:
URL: https://github.com/apache/bigtop/pull/965#issuecomment-1216078960

   Will be fixed by #983 


-- 
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-unsubscribe@bigtop.apache.org

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


[GitHub] [bigtop] guyuqi merged pull request #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

Posted by GitBox <gi...@apache.org>.
guyuqi merged PR #965:
URL: https://github.com/apache/bigtop/pull/965


-- 
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-unsubscribe@bigtop.apache.org

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


[GitHub] [bigtop] guyuqi commented on pull request #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

Posted by GitBox <gi...@apache.org>.
guyuqi commented on PR #965:
URL: https://github.com/apache/bigtop/pull/965#issuecomment-1216223398

   +1, thanks for working on it. @timyuer @kevinw66 


-- 
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-unsubscribe@bigtop.apache.org

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


[GitHub] [bigtop] timyuer commented on pull request #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

Posted by GitBox <gi...@apache.org>.
timyuer commented on PR #965:
URL: https://github.com/apache/bigtop/pull/965#issuecomment-1203675426

   Thanks Yuqi, I used MySQL to test, this problem is caused by not setting the PostgreSQL driver, You can perform the following commands try ,  the tip at the time of set up the database properties. I propose to add this command to `build-containers.sh`.
   
   >To use PostgreSQL with Hive, you must [download the https://jdbc.postgresql.org/ from PostgreSQL](https://jdbc.postgresql.org/). Once downloaded to the Ambari Server host, run:
   ```bash
   ambari-server setup --jdbc-db=postgres --jdbc-driver=/path/to/postgres-driver/postgresql-jdbc.jar
   ```
   If you have not already created the user and database, you should execute the following command in PostgreSQL
   ```sql
   create user hive with password 'hive';
   create database hive owner hive;
   grant all privileges on database hive to hive;
   ```
   ![微信图片_20220803164500](https://user-images.githubusercontent.com/16263438/182565394-a5ecd42a-b236-4337-aae4-2f3dbb42bfde.png)


-- 
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-unsubscribe@bigtop.apache.org

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


[GitHub] [bigtop] guyuqi commented on pull request #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

Posted by GitBox <gi...@apache.org>.
guyuqi commented on PR #965:
URL: https://github.com/apache/bigtop/pull/965#issuecomment-1208947538

   Hadoop-3.3.4 centos-7 rpms: 
   `https://ci.bigtop.apache.org/job/Bigtop-trunk-snapshot/DISTRO=centos-7,PLATFORM=amd64-slave/ws/output/hadoop/`


-- 
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-unsubscribe@bigtop.apache.org

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


[GitHub] [bigtop] guyuqi commented on pull request #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

Posted by GitBox <gi...@apache.org>.
guyuqi commented on PR #965:
URL: https://github.com/apache/bigtop/pull/965#issuecomment-1206270819

   @timyuer 
   Could you please add the related script to [mpack test path ](https://github.com/apache/bigtop/tree/master/bigtop-packages/src/common/bigtop-ambari-mpack/dev-support/docker/centos7)?
   
   The script could be named: `setup-hive-service.sh`. 
   You could add mysql or postsql configuration ( download the jdbc, create database/user/ passwd ) in it and re-start the ambari server there. thanks.
   


-- 
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-unsubscribe@bigtop.apache.org

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


[GitHub] [bigtop] guyuqi commented on pull request #965: BIGTOP-3738: Add Hive support for Bigtop 3.1.0 Mpack

Posted by GitBox <gi...@apache.org>.
guyuqi commented on PR #965:
URL: https://github.com/apache/bigtop/pull/965#issuecomment-1207728501

   We upgraded Hadoop 3.3.4 in https://github.com/apache/bigtop/pull/964.
   
   Then the Hive depolyment is against on Hadoop-3.3.4.
   
   Failed to start  `WebHCat Server`:
   ```
   resource_management.core.exceptions.ExecutionFailed: Execution of 'cd /var/run/webhcat ; /usr/lib/hive-hcatalog/sbin/webhcat_server.sh start' returned 1. Lenght of string is non zero
   webhcat: starting ...
   webhcat: /usr/lib/hadoop/bin/hadoop jar /usr/lib/hive-hcatalog/sbin/../share/webhcat/svr/lib/hive-webhcat-3.1.3.jar org.apache.hive.hcatalog.templeton.Main  
   /usr/lib/hive-hcatalog/sbin/webhcat_server.sh: failed to start. Check logs in  /var/log/webhcat
   ```
   
   ```
   2022-08-08 06:33:09,263 - Execute['cd /var/run/webhcat ; /usr/lib/hive-hcatalog/sbin/webhcat_server.sh start'] {'environment': {'HIVE_HOME': '/usr/lib/hive'}, 'not_if': 'ls /var/run/webhcat/webhcat.pid >/dev/null 2>&1 && ps -p `cat /var/run/webhcat/webhcat.pid` >/dev/null 2>&1', 'user': 'hcat'}
   2022-08-08 06:33:19,463 - Execute['find /var/log/webhcat -maxdepth 1 -type f -name '*' -exec echo '==> {} <==' \; -exec tail -n 40 {} \;'] {'logoutput': True, 'ignore_failures': True, 'user': 'hcat'}
   ==> /var/log/webhcat/webhcat-console-error.log <==
   SLF4J: Class path contains multiple SLF4J bindings.
   SLF4J: Found binding in [jar:file:/usr/lib/hive/lib/log4j-slf4j-impl-2.17.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
   SLF4J: Found binding in [jar:file:/usr/lib/hadoop/lib/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class]
   SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
   SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
   templeton: Server failed to start: Authentication type must be specified: simple|kerberos|<class>
   ==> /var/log/webhcat/webhcat.log <==
   INFO  | 08 Aug 2022 06:33:12,392 | org.apache.curator.framework.imps.CuratorFrameworkImpl | backgroundOperationsLoop exiting
   INFO  | 08 Aug 2022 06:33:12,437 | com.sun.jersey.api.core.ScanningResourceConfig | Root resource classes found:
     class org.apache.hive.hcatalog.templeton.Server
   INFO  | 08 Aug 2022 06:33:12,437 | com.sun.jersey.api.core.ScanningResourceConfig | Provider classes found:
     class org.apache.hive.hcatalog.templeton.CatchallExceptionMapper
     class org.apache.hive.hcatalog.templeton.SimpleExceptionMapper
   INFO  | 08 Aug 2022 06:33:12,443 | org.eclipse.jetty.server.Server | jetty-9.3.20.v20170531
   INFO  | 08 Aug 2022 06:33:12,525 | org.apache.hive.hcatalog.templeton.tool.ZooKeeperCleanup | Next execution: Mon Aug 08 06:38:09 UTC 2022
   INFO  | 08 Aug 2022 06:33:12,599 | com.sun.jersey.server.impl.application.WebApplicationImpl | Initiating Jersey application, version 'Jersey: 1.19 02/11/2015 03:25 AM'
   INFO  | 08 Aug 2022 06:33:13,005 | com.sun.jersey.api.wadl.config.WadlGeneratorLoader | Loading wadlGenerator com.sun.jersey.server.wadl.generators.resourcedoc.WadlGeneratorResourceDocSupport
   INFO  | 08 Aug 2022 06:33:13,473 | org.eclipse.jetty.server.AbstractConnector | Started ServerConnector@15dd5ac2{HTTP/1.1,[http/1.1]}{0.0.0.0:50111}
   ERROR | 08 Aug 2022 06:33:13,474 | org.apache.hive.hcatalog.templeton.Main | Server failed to start: 
   javax.servlet.ServletException: Authentication type must be specified: simple|kerberos|<class>
   	at org.apache.hadoop.security.authentication.server.AuthenticationFilter.init(AuthenticationFilter.java:164) ~[hadoop-auth-3.3.4.jar:?]
   	at org.apache.hadoop.security.authentication.server.ProxyUserAuthenticationFilter.init(ProxyUserAuthenticationFilter.java:57) ~[hadoop-common-3.3.4.jar:?]
   	at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:139) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   	at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:873) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:349) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:778) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   	at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:262) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   	at org.eclipse.jetty.server.Server.start(Server.java:422) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   	at org.eclipse.jetty.server.Server.doStart(Server.java:389) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[jetty-runner-9.3.20.v20170531.jar:9.3.20.v20170531]
   	at org.apache.hive.hcatalog.templeton.Main.runServer(Main.java:235) ~[hive-webhcat-3.1.3.jar:3.1.3]
   	at org.apache.hive.hcatalog.templeton.Main.run(Main.java:134) [hive-webhcat-3.1.3.jar:3.1.3]
   	at org.apache.hive.hcatalog.templeton.Main.main(Main.java:345) [hive-webhcat-3.1.3.jar:3.1.3]
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_342]
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_342]
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_342]
   	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_342]
   	at org.apache.hadoop.util.RunJar.run(RunJar.java:323) [hadoop-common-3.3.4.jar:?]
   	at org.apache.hadoop.util.RunJar.main(RunJar.java:236) [hadoop-common-3.3.4.jar:?]
   ==> /var/log/webhcat/webhcat-console.log <==
   ```


-- 
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-unsubscribe@bigtop.apache.org

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