Member since
04-11-2016
535
Posts
148
Kudos Received
77
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
9065 | 09-17-2018 06:33 AM | |
2370 | 08-29-2018 07:48 AM | |
3364 | 08-28-2018 12:38 PM | |
2851 | 08-03-2018 05:42 AM | |
2576 | 07-27-2018 04:00 PM |
08-11-2016
07:53 AM
@Bala Vignesh N V You can use below command to check the number of lines in a HDFS file: [hdfs@ssnode1 root]$ hdfs dfs -cat /tmp/test.txt |wc -l 23
... View more
08-11-2016
07:49 AM
@Bala Vignesh N V
We don't have support for auto_increment, sequence still in Hive. There is the following UDF but you would have to restrict the number of mappers to 1 to make this work. https://svn.apache.org/repos/asf/hive/trunk/contrib/src/java/org/apache/hadoop/hive/contrib/udf/UDFRowSequence.java
... View more
08-08-2016
11:23 AM
@saswati sahu Sample hive index creation: 0: jdbc:hive2://ssnode2.openstacklocal:10000/> create index test_index_table on table test_table(col1,col2) AS 'org.apache.hadoop.hive.ql.index.compact.CompactIndexHandler' WITH DEFERRED REBUILD; No rows affected (0.351 seconds)
... View more
08-08-2016
10:55 AM
@saswati sahu
Yes, you can create index in Hive. https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Indexing Sample hive index creation: 0: jdbc:hive2://ssnode2.openstacklocal:10000/> create index test_index_table on table test_table(col1,col2) AS 'org.apache.hadoop.hive.ql.index.compact.CompactIndexHandler' WITH DEFERRED REBUILD; No rows affected (0.351 seconds)
... View more
08-08-2016
09:04 AM
1 Kudo
@Simran Kaur Hive CSV serde is built on Open CSV which support all basic csv type operations. Basically, to design the serde based on the type of data within the csv file. Refer to below link for details: http://opencsv.sourceforge.net/
... View more
08-08-2016
06:46 AM
1 Kudo
@Simran Kaur To handle the delimiters within the data, you can create a table as "ROW FORMAT DELIMITED FIELDS TERMINATED BY "," ESCAPED BY '\\';" which will handle the data “1,some text\, with comma in it,123,more text”. Also, you can have hive table with CSV serde. Please refer to below link: https://github.com/ogrodnek/csv-serde
... View more
08-08-2016
06:08 AM
@Mahipal Ramidi You can have a Hive UDF to achieve the functions. You can alternatively use NTILE which is supported in Hive. Please refer to below link for current list of Analytical functions: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+WindowingAndAnalytics
... View more
08-08-2016
06:00 AM
2 Kudos
@Pugazhvanan parthiban It is not possible to directly load a text file into a ORC table. Steps to load data into ORC file format in hive: 1.Create one normal table using textFile format. 2.Load the data normally into this table. 3.Create one table with the schema of the expected results of your normal hive table using stored as orcfile. 4.Insert overwrite query to copy the data from textFile table to orcfile table.
... View more
07-27-2016
09:42 AM
@oula.alshiekh@gmail.com alshiekh Hue 2.6.1 is supported only on CentOS6. Please refer to system requirements below: http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_installing_manually_book/content/prerequisites_hue.html
... View more
07-27-2016
09:38 AM
1 Kudo
@sandrine G
Hive 2.0 will be part of HDP 2.5 and expected to be released late this year. There is no abstract date for the release.
... View more