Member since
01-19-2017
3679
Posts
632
Kudos Received
372
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 992 | 06-04-2025 11:36 PM | |
| 1564 | 03-23-2025 05:23 AM | |
| 780 | 03-17-2025 10:18 AM | |
| 2811 | 03-05-2025 01:34 PM | |
| 1853 | 03-03-2025 01:09 PM |
05-10-2019
01:09 PM
@Adil BAKKOURI Any updates?
... View more
05-10-2019
01:09 PM
@Adil BAKKOURI You have a couple of issues, could you first align your MySQL server time to your local time. Can you re-run this command # Check your databases system time mysql> select now();
+---------------------+
| now() |
+---------------------+
| 2019-04-13 20:41:04 |
+---------------------+ There are three places where the timezone might be set in MySQL in the file "my.cnf" in the [mysqld] section by setting default-time-zone='+00:00' To set it use either one: mysql> SELECT @@session.time_zone;
+---------------------+
| @@session.time_zone |
+---------------------+
| SYSTEM |
+---------------------+
1 row in set (0.00 sec) Now you can set it i.e SET time_zone = 'Europe/Helsinki'; SET time_zone = "+00:00"; SET @@session.time_zone = "+00:00"; # Re-Install the mysql jdbc connector yum install -y mysql-connector-java # Setup Ambari ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java.jar You may need to recreate the hive user and schema and then after a successful startup, you can drop the old user and schema. Assuming your old hive user was [hiveold] # New Hive user assuming the root user password is {welcome1} mysql -u root -pwelcome1
create database hivedb;
CREATE USER 'hive'@'%' IDENTIFIED BY '{hive_password}';
GRANT ALL PRIVILEGES ON *.* TO 'hive'@'localhost';
GRANT ALL PRIVILEGES ON hivedb.* TO 'hive'@'%';
GRANT ALL PRIVILEGES ON hivedb.* TO 'hive'@'localhost' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON hivedb.* to 'hive'@'localhost' identified by '{hive_password}';
GRANT ALL PRIVILEGES ON hivedb.* to 'hive'@'{YOUR_HOST_FQDN}' identified by '{hive_password}';
GRANT ALL PRIVILEGES ON hivedb.* TO 'hive'@'{YOUR_HOST_FQDN}';
GRANT ALL PRIVILEGES ON hivedb.* TO 'hive'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES; quit; After all the above now try to configure hive through Ambari and after saving the configuration your hive should start normally. Please keep me posted.
... View more
05-10-2019
10:49 AM
@Banthita Limwilai I am wondering which user you are using to execute the job? Can you share your /etc/hadoop/conf/container-executor.cfg hdfs user should be a banned user in the previous file Could you do the following as root user # su - hive Then invoke the hive CLI, that should work Please revert
... View more
05-10-2019
09:32 AM
@Maurice Knopp You could save your company money 🙂 This is a trivial matter can you share your HS2 logs? What OS's are running on?
... View more
05-09-2019
05:18 AM
1 Kudo
@Erkan ŞİRİN Nice to know it worked just wondering didn't see --create-hive-table statement? can you try adding like below --hive-table azhadoop.iris_hive \
--create-hive-table \
--target-dir /tmp/hive_temp Please let me know
... View more
05-08-2019
10:10 PM
@Maurice Knopp Maria DB uses the MySQL drivers, you will need to the below steps to successfully deploy hive, this is my HDP 3.1 installation so I am pretty sure of what I am saying. The Hortonworks matrix helps you choose the right versions for compatibility for HDP 3.1.0 you will need MariaDB 10.2 or MySQL 5.7 only with InnoDB Ensure that you change the JDBC drivers as shown in the screen # yum install -y mysql-connector-java Make ambari aware of the driver ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java.jar The above setup won't destroy your Ambari installation! Please let me know
... View more
05-08-2019
09:18 PM
@Erkan ŞİRİN Can you add these values in your mapred.xml get the values of mapreduce.job.ubertask.maxbytes from hdfs-site.xml mapreduce.job.ubertask.enable = true
mapreduce.job.ubertask.maxmaps = 1
mapreduce.job.ubertask.maxreduces = 1
mapreduce.job.ubertask.maxbytes = {get value from hdfs dfs.block.size parameter in hdfs-site.xm Then restart the YARN and MR and relaunch the job
... View more
05-08-2019
07:04 PM
@Shesh Kumar create an HCC article out of this HTH
... View more
05-07-2019
08:41 AM
@Mariano Gastaldi Good it worked !! so you installed the hdfs client just copied the hdfs-site.xml. If you found this answer addressed your question, please take a moment to log in and click the "accept" link on the answer. That would be a great help to Community users to find the solution quickly for these kinds of errors.
... View more