[ 
https://issues.apache.org/jira/browse/ATLAS-588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15209419#comment-15209419
 ] 

Suma Shivaprasad commented on ATLAS-588:
----------------------------------------

>From the table description, it clearly shows that the table is not partiotioned

0: jdbc:hive2://localhost:10000> show create table table_1;
+------------------------------------------------------------------------------------------------------------------+--+
|                                                  createtab_stmt               
                                   |
+------------------------------------------------------------------------------------------------------------------+--+
| CREATE TABLE `table_1`(                                                       
                                   |
|   `timestamp_col_1` timestamp,                                                
                                   |
|   `decimal3003_col_2` decimal(30,3),                                          
                                   |
|   `tinyint_col_3` tinyint,                                                    
                                   |
|   `decimal0101_col_4` decimal(1,1),                                           
                                   |
|   `boolean_col_5` boolean,                                                    
                                   |
|   `float_col_6` float,                                                        
                                   |
|   `bigint_col_7` bigint,                                                      
                                   |
|   `varchar0098_col_8` varchar(98),                                            
                                   |
|   `timestamp_col_9` timestamp,                                                
                                   |
|   `bigint_col_10` bigint,                                                     
                                   |
|   `decimal0903_col_11` decimal(9,3),                                          
                                   |
|   `timestamp_col_12` timestamp,                                               
                                   |
|   `timestamp_col_13` timestamp,                                               
                                   |
|   `float_col_14` float,                                                       
                                   |
|   `char0254_col_15` char(254),                                                
                                   |
|   `double_col_16` double,                                                     
                                   |
|   `timestamp_col_17` timestamp,                                               
                                   |
|   `boolean_col_18` boolean,                                                   
                                   |
|   `decimal2608_col_19` decimal(26,8),                                         
                                   |
|   `varchar0216_col_20` varchar(216),                                          
                                   |
|   `string_col_21` string,                                                     
                                   |
|   `bigint_col_22` bigint,                                                     
                                   |
|   `boolean_col_23` boolean,                                                   
                                   |
|   `timestamp_col_24` timestamp,                                               
                                   |
|   `boolean_col_25` boolean,                                                   
                                   |
|   `decimal2016_col_26` decimal(20,16),                                        
                                   |
|   `string_col_27` string,                                                     
                                   |
|   `decimal0202_col_28` decimal(2,2),                                          
                                   |
|   `float_col_29` float,                                                       
                                   |
|   `decimal2020_col_30` decimal(20,20),                                        
                                   |
|   `boolean_col_31` boolean,                                                   
                                   |
|   `double_col_32` double,                                                     
                                   |
|   `varchar0148_col_33` varchar(148),                                          
                                   |
|   `decimal2121_col_34` decimal(21,21),                                        
                                   |
|   `tinyint_col_35` tinyint,                                                   
                                   |
|   `boolean_col_36` boolean,                                                   
                                   |
|   `boolean_col_37` boolean,                                                   
                                   |
|   `string_col_38` string,                                                     
                                   |
|   `decimal3420_col_39` decimal(34,20),                                        
                                   |
|   `timestamp_col_40` timestamp,                                               
                                   |
|   `decimal1408_col_41` decimal(14,8),                                         
                                   |
|   `string_col_42` string,                                                     
                                   |
|   `decimal0902_col_43` decimal(9,2),                                          
                                   |
|   `varchar0204_col_44` varchar(204),                                          
                                   |
|   `boolean_col_45` boolean,                                                   
                                   |
|   `timestamp_col_46` timestamp,                                               
                                   |
|   `boolean_col_47` boolean,                                                   
                                   |
|   `bigint_col_48` bigint,                                                     
                                   |
|   `boolean_col_49` boolean,                                                   
                                   |
|   `smallint_col_50` smallint,                                                 
                                   |
|   `decimal0704_col_51` decimal(7,4),                                          
                                   |
|   `timestamp_col_52` timestamp,                                               
                                   |
|   `boolean_col_53` boolean,                                                   
                                   |
|   `timestamp_col_54` timestamp,                                               
                                   |
|   `int_col_55` int,                                                           
                                   |
|   `decimal0505_col_56` decimal(5,5),                                          
                                   |
|   `char0155_col_57` char(155),                                                
                                   |
|   `boolean_col_58` boolean,                                                   
                                   |
|   `bigint_col_59` bigint,                                                     
                                   |
|   `boolean_col_60` boolean,                                                   
                                   |
|   `boolean_col_61` boolean,                                                   
                                   |
|   `char0249_col_62` char(249),                                                
                                   |
|   `boolean_col_63` boolean,                                                   
                                   |
|   `timestamp_col_64` timestamp,                                               
                                   |
|   `decimal1309_col_65` decimal(13,9),                                         
                                   |
|   `int_col_66` int,                                                           
                                   |
|   `float_col_67` float,                                                       
                                   |
|   `timestamp_col_68` timestamp,                                               
                                   |
|   `timestamp_col_69` timestamp,                                               
                                   |
|   `boolean_col_70` boolean,                                                   
                                   |
|   `timestamp_col_71` timestamp,                                               
                                   |
|   `double_col_72` double,                                                     
                                   |
|   `boolean_col_73` boolean,                                                   
                                   |
|   `char0222_col_74` char(222),                                                
                                   |
|   `float_col_75` float,                                                       
                                   |
|   `string_col_76` string,                                                     
                                   |
|   `decimal2612_col_77` decimal(26,12),                                        
                                   |
|   `timestamp_col_78` timestamp,                                               
                                   |
|   `char0128_col_79` char(128),                                                
                                   |
|   `timestamp_col_80` timestamp,                                               
                                   |
|   `double_col_81` double,                                                     
                                   |
|   `timestamp_col_82` timestamp,                                               
                                   |
|   `float_col_83` float,                                                       
                                   |
|   `decimal2622_col_84` decimal(26,22),                                        
                                   |
|   `double_col_85` double,                                                     
                                   |
|   `float_col_86` float,                                                       
                                   |
|   `decimal0907_col_87` decimal(9,7))                                          
                                   |
| ROW FORMAT SERDE                                                              
                                   |
|   'org.apache.hadoop.hive.ql.io.orc.OrcSerde'                                 
                                   |
| STORED AS INPUTFORMAT                                                         
                                   |
|   'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat'                           
                                   |
| OUTPUTFORMAT                                                                  
                                   |
|   'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat'                          
                                   |
| LOCATION                                                                      
                                   |
|   
'hdfs://sneethiraj-ambari-atlas-job-160323-0215-1.novalocal:8020/apps/hive/warehouse/autoquerygen.db/table_1'
  |
| TBLPROPERTIES (                                                               
                                   |
|   'COLUMN_STATS_ACCURATE'='true',                                             
                                   |
|   'numFiles'='1',                                                             
                                   |
|   'numRows'='80286',                                                          
                                   |
+------------------------------------------------------------------------------------------------------------------+--+
|                                                  createtab_stmt               
                                   |
+------------------------------------------------------------------------------------------------------------------+--+
|   'rawDataSize'='360667319',                                                  
                                   |
|   'totalSize'='14809725',                                                     
                                   |
|   'transient_lastDdlTime'='1458726079')                                       
                                   |
+------------------------------------------------------------------------------------------------------------------+--+
103 rows selected (0.778 seconds)

> import-hive.sh fails while importing partitions for a non-partitioned table
> ---------------------------------------------------------------------------
>
>                 Key: ATLAS-588
>                 URL: https://issues.apache.org/jira/browse/ATLAS-588
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.7-incubating
>            Reporter: Suma Shivaprasad
>            Assignee: Suma Shivaprasad
>             Fix For: 0.7-incubating
>
>
> {noformat}
> [root@sneethiraj-ambari-atlas-job-160323-0215-1 atlas-server]# export 
> HIVE_CONF_DIR=/etc/hive/conf
> [root@sneethiraj-ambari-atlas-job-160323-0215-1 atlas-server]# 
> bin/import-hive.sh
> Using Hive configuration directory [/etc/hive/conf]
> Log file for import is /var/log/atlas/import-hive.log
> Exception in thread "main" org.codehaus.jettison.json.JSONException: 
> JSONArray[0] not found.
> at org.codehaus.jettison.json.JSONArray.get(JSONArray.java:193)
> at org.codehaus.jettison.json.JSONArray.getString(JSONArray.java:316)
> at 
> org.apache.atlas.hive.bridge.HiveMetaStoreBridge.registerInstance(HiveMetaStoreBridge.java:191)
> at 
> org.apache.atlas.hive.bridge.HiveMetaStoreBridge.registerPartition(HiveMetaStoreBridge.java:452)
> at 
> org.apache.atlas.hive.bridge.HiveMetaStoreBridge.registerPartitions(HiveMetaStoreBridge.java:438)
> at 
> org.apache.atlas.hive.bridge.HiveMetaStoreBridge.importTables(HiveMetaStoreBridge.java:256)
> at 
> org.apache.atlas.hive.bridge.HiveMetaStoreBridge.importDatabases(HiveMetaStoreBridge.java:122)
> at 
> org.apache.atlas.hive.bridge.HiveMetaStoreBridge.importHiveMetadata(HiveMetaStoreBridge.java:114)
> at 
> org.apache.atlas.hive.bridge.HiveMetaStoreBridge.main(HiveMetaStoreBridge.java:608)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to