Member since
09-18-2015
3274
Posts
1159
Kudos Received
426
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2576 | 11-01-2016 05:43 PM | |
| 8543 | 11-01-2016 05:36 PM | |
| 4880 | 07-01-2016 03:20 PM | |
| 8208 | 05-25-2016 11:36 AM | |
| 4352 | 05-24-2016 05:27 PM |
11-23-2015
11:59 AM
1 Kudo
@Saumil Mayani nice! Def deserve upvote.
... View more
11-21-2015
03:24 PM
@Kuldeep Kulkarni It's same as what ranger hive policies does. Correct ?
... View more
11-21-2015
02:47 PM
@bpreachuk Using ODBC driver is the cleanest way to do it. Access --> RDBMS --> Hive using Sqoop. Looking forward to see the final update Kudos to this guy Link
... View more
11-21-2015
02:46 PM
@Chris Nauroth Thanks for sharing this. Could you update the answer with more details? I believe this is the best answer if you can add more details.
... View more
11-21-2015
03:01 AM
1 Kudo
@Saumil Mayani If you want to get ddl of tables mysql -u hive -p -e " select concat( 'show create table ' , TBL_NAME,';') from TBLS" hive > file.sql
remove header in file.sql
hive -f /tmp/file.sql
Details [root@phdns02 ~]# Table names login to mysql use hive; select concat( 'show create table ' , TBL_NAME,';') from TBLS; or mysql -u hive -p -e " select concat( 'show create table ' , TBL_NAME,';') from TBLS" hive > file.sql You can add above output in shell and run this [root@phdns02 ~]# su - hive [hive@phdns02 ~]$ hive -f /tmp/h.ddl WARNING: Use "yarn jar" to launch YARN applications. Logging initialized using configuration in file:/etc/hive/2.3.4.0-3276/0/hive-log4j.properties OK CREATE TABLE `hadoop`( `name` string) ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 'hdfs://phdns01.cloud.hortonworks.com:8020/apps/hive/warehouse/hadoop' TBLPROPERTIES ( 'transient_lastDdlTime'='1448062564') Time taken: 2.045 seconds, Fetched: 12 row(s) OK CREATE TABLE `ns`( `name` string) ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 'hdfs://phdns01.cloud.hortonworks.com:8020/apps/hive/warehouse/ns' TBLPROPERTIES ( 'transient_lastDdlTime'='1448062211') Time taken: 0.067 seconds, Fetched: 12 row(s) [hive@phdns02 ~]$
... View more
11-21-2015
02:39 AM
Thanks @Pardeep.
... View more
11-21-2015
02:33 AM
2 Kudos
Ambari is showing wrong hostnames for Journalnodes when drilled down from UI and sometimes also shows wrong Services components on adhoc basis. Ambari2.1.2
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Hadoop
11-21-2015
12:38 AM
@egarelnabi One of the best explanations Link . As per my understanding , same rule applies in case of kerberos too.
... View more