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

yangchengkai commented on ATLAS-3488:
-------------------------------------

[~nixon],hi:

I can run quick-start.py successfully, this is my output:
root@master:/usr/local/src/atlas/apache-atlas-2.1.0# bin/quick_start.py 
Enter username for atlas :- admin
Enter password for atlas :- 

Creating sample types: 
Created type [DB]
Created type [Table]
Created type [StorageDesc]
Created type [Column]
Created type [LoadProcess]
Created type [LoadProcessExecution]
Created type [View]
Created type [JdbcAccess]
Created type [ETL]
Created type [Metric]
Created type [PII]
Created type [Fact]
Created type [Dimension]
Created type [Log Data]
Created type [Table_DB]
Created type [View_DB]
Created type [View_Tables]
Created type [Table_Columns]
Created type [Table_StorageDesc]

Creating sample entities: 
Created entity of type [DB], guid: 0809e0f7-b772-4521-bc5e-46192e3c0ef1
Created entity of type [DB], guid: 7a4ba630-2c18-49d9-ba65-d127a2b12a28
Created entity of type [DB], guid: 5effe5a7-7b4c-439a-9b3a-c523bebe2dfc
Created entity of type [Table], guid: 33578c65-ad00-4081-9bab-4fad7dfdc379



but when I run the import_hive.sh,it still output the same error on my console:


17:47:40.926 [main] DEBUG org.apache.hadoop.hive.ql.exec.Utilities - Hive Conf 
not found or Session not initiated, use thread based class loader instead
17:47:40.926 [main] DEBUG org.apache.hadoop.hive.ql.exec.Utilities - Hive Conf 
not found or Session not initiated, use thread based class loader instead
17:47:40.926 [main] DEBUG org.apache.hadoop.hive.ql.exec.Utilities - Hive Conf 
not found or Session not initiated, use thread based class loader instead
17:47:40.926 [main] DEBUG org.apache.hadoop.hive.ql.exec.Utilities - Hive Conf 
not found or Session not initiated, use thread based class loader instead
17:47:40.927 [main] DEBUG org.apache.hadoop.hive.ql.exec.Utilities - Hive Conf 
not found or Session not initiated, use thread based class loader instead
17:47:40.927 [main] DEBUG org.apache.hadoop.hive.ql.exec.Utilities - Hive Conf 
not found or Session not initiated, use thread based class loader instead
17:47:40.927 [main] DEBUG org.apache.hadoop.hive.ql.exec.Utilities - Hive Conf 
not found or Session not initiated, use thread based class loader instead
17:47:41.047 [main] DEBUG org.apache.hadoop.security.SecurityUtil - Setting 
hadoop.security.token.service.use_ip to true
17:47:41.058 [main] DEBUG org.apache.hadoop.security.Groups -  Creating new 
Groups object
17:47:41.063 [main] DEBUG org.apache.hadoop.security.Groups - Group mapping 
impl=org.apache.hadoop.security.ShellBasedUnixGroupsMapping; 
cacheTimeout=300000; warningDeltaMs=5000
17:47:41.066 [main] DEBUG org.apache.hadoop.security.UserGroupInformation - 
hadoop login
17:47:41.066 [main] DEBUG org.apache.hadoop.security.UserGroupInformation - 
hadoop login commit
17:47:41.067 [main] DEBUG org.apache.hadoop.security.UserGroupInformation - 
using local user:UnixPrincipal: root
17:47:41.067 [main] DEBUG org.apache.hadoop.security.UserGroupInformation - 
Using user: "UnixPrincipal: root" with name root
17:47:41.067 [main] DEBUG org.apache.hadoop.security.UserGroupInformation - 
User entry: "root"
17:47:41.068 [main] DEBUG org.apache.hadoop.security.UserGroupInformation - UGI 
loginUser:root (auth:SIMPLE)
17:47:41.081 [main] INFO  hive.metastore - HMS client filtering is enabled.
17:47:41.081 [main] INFO  hive.metastore - Trying to connect to metastore with 
URI thrift://master:9083
17:47:41.094 [main] INFO  hive.metastore - Opened a connection to metastore, 
current connections: 1
17:47:41.097 [main] DEBUG org.apache.hadoop.security.Groups - GroupCacheLoader 
- load.
17:47:41.114 [main] INFO  hive.metastore - Connected to metastore.
17:47:41.255 [main] INFO  org.apache.atlas.hive.bridge.HiveMetaStoreBridge - 
Importing Hive metadata
17:47:41.260 [main] INFO  org.apache.atlas.hive.bridge.HiveMetaStoreBridge - 
Found 2 databases
17:47:41.264 [main] DEBUG org.apache.atlas.hive.bridge.HiveMetaStoreBridge - 
Searching Atlas for database default
17:47:41.268 [main] DEBUG org.apache.atlas.AtlasBaseClient - 
------------------------------------------------------
17:47:41.269 [main] DEBUG org.apache.atlas.AtlasBaseClient - Call         : GET 
api/atlas/v2/entity/uniqueAttribute/type/
17:47:41.269 [main] DEBUG org.apache.atlas.AtlasBaseClient - Content-type : 
application/json; charset=UTF-8 
17:47:41.269 [main] DEBUG org.apache.atlas.AtlasBaseClient - Accept       : 
application/json 
17:47:41.283 [main] DEBUG org.apache.atlas.AtlasBaseClient - HTTP Status  : 404
Exception in thread "main" java.lang.NoSuchMethodError: 
org.apache.hadoop.hive.metastore.api.Database.getCatalogName()Ljava/lang/String;
        at 
org.apache.atlas.hive.bridge.HiveMetaStoreBridge.getDatabaseName(HiveMetaStoreBridge.java:577)
        at 
org.apache.atlas.hive.bridge.HiveMetaStoreBridge.toDbEntity(HiveMetaStoreBridge.java:557)
        at 
org.apache.atlas.hive.bridge.HiveMetaStoreBridge.toDbEntity(HiveMetaStoreBridge.java:549)
        at 
org.apache.atlas.hive.bridge.HiveMetaStoreBridge.registerDatabase(HiveMetaStoreBridge.java:416)
        at 
org.apache.atlas.hive.bridge.HiveMetaStoreBridge.importDatabases(HiveMetaStoreBridge.java:295)
        at 
org.apache.atlas.hive.bridge.HiveMetaStoreBridge.importHiveMetadata(HiveMetaStoreBridge.java:265)
        at 
org.apache.atlas.hive.bridge.HiveMetaStoreBridge.main(HiveMetaStoreBridge.java:171)
Failed to import Hive Meta Data!!!

I chick the logs/application.log,it is still the same error.



> Update with Filebased auth password with ShaPasswordEncoder with salt.
> ----------------------------------------------------------------------
>
>                 Key: ATLAS-3488
>                 URL: https://issues.apache.org/jira/browse/ATLAS-3488
>             Project: Atlas
>          Issue Type: Improvement
>            Reporter: Nixon Rodrigues
>            Assignee: Nixon Rodrigues
>            Priority: Major
>             Fix For: 3.0.0
>
>         Attachments: ATLAS-3488.07.patch, ATLAS-3488.6.patch
>
>
> Current password is encoded with {{sha256 method for filebased 
> authentication.}}
>  
> {{Update the password with }}{{sha256}}{{ with salt encoding which is more 
> secured.}}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to