Member since
09-18-2015
3274
Posts
1159
Kudos Received
426
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2714 | 11-01-2016 05:43 PM | |
| 9301 | 11-01-2016 05:36 PM | |
| 5065 | 07-01-2016 03:20 PM | |
| 8498 | 05-25-2016 11:36 AM | |
| 4652 | 05-24-2016 05:27 PM |
02-10-2016
03:39 AM
2 Kudos
Use case: There is lot of data in the locally managed table and we want to convert those table into external table because we are working on a use case where our spark and home grown application has trouble reading locally managed tables. Solution: alter table table_name SET TBLPROPERTIES('EXTERNAL'='TRUE'); Test: Locally managed table dropped hive> drop table sample_07; OK Time taken: 0.602 seconds Data deleted as it's locally managed table.
hive> dfs -ls /apps/hive/warehouse/sample_07; ls: `/apps/hive/warehouse/sample_07': No such file or directory Command failed with exit code = 1 Query returned non-zero code: 1, cause: null Converting sample_07_test from locally managed to external to keep the data there after drop. hive> alter table sample_07_test SET TBLPROPERTIES('EXTERNAL'='TRUE'); OK Time taken: 0.463 seconds Table dropped after converting into external table.
hive> drop table sample_07_test; OK Time taken: 0.552 seconds Data is still on HDFS
hive> dfs -ls /apps/hive/warehouse/sample_07_test; Found 1 items -rwxrwxrwx 3 hive hdfs 46059 2016-02-10 03:24 /apps/hive/warehouse/sample_07_test/000000_0 hive> Table removed from HCatalog
hive> select * from sample_07_test; FAILED: SemanticException [Error 10001]: Line 1:14 Table not found 'sample_07_test' hive>
... View more
Labels:
02-10-2016
02:31 AM
@Mike Vogt Make sure HDFS, Mapreduce and yarn is running port 10020 belongs job history server.
... View more
02-10-2016
02:30 AM
2 Kudos
@Mike Vogt How much memory have you allocated to Sandbox? Make sure that you shutdown hbase and any other component that you don't need. Can you share screenshot of ambari?
... View more
02-10-2016
02:24 AM
@Prakash Punj I have the same setting. Can you try changin for HBASE only?
... View more
02-10-2016
01:17 AM
@teru mat What details are you looking for? See this manual http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4-Win/bk_QuickStart_HDPWin/content/inst_HDPWin.html
... View more
02-10-2016
12:49 AM
Also, you will notice the same setting under AMS also. check that too
... View more
02-10-2016
12:33 AM
@Robin Dong Here is the problem
java.sql.SQLException:Access denied for user 'hive'@'avechdmq1.ae.ge.com'(using password: YES) You need to login to mysql as root user and run this grant all privileges on *.* to 'hive'@'avechdmq1.ae.ge.com' identified by 'hivepassword' with grant option;
... View more
02-10-2016
12:17 AM
@Astronaut Bigdatanova Please see this Slideshare portal has tons of resources specially to meet your requirement.
... View more