Created 11-16-2016 05:53 PM
even though HDP2.5 console shows ATLAS server and clients as started and no errors but I can't reach the atlas URL hadoop1:21000
I am seeing errors in /var/log/atlas/application.log and /var/log/atlas/audit.log as follows:
[root@hadoop1 atlas]# pwd /var/log/atlas [root@hadoop1 atlas]# tail -100f application.log 2016-11-16 12:35:06,875 INFO - [qtp964346941-15 - 7e9b2f05-70b3-49eb-b782-fb602a194250:] ~ Audit: UNKNOWN/127.0.0.1-127.0.0.1 performed request GET http://localhost:21000/api/atlas/admin/status (127.0.0.1) at time 2016-11-16T17:35Z (AUDIT:104) 2016-11-16 12:36:06,832 INFO - [qtp964346941-17 - d8126dcf-bafe-4ea5-8169-853fb70b89dd:] ~ Audit: UNKNOWN/127.0.0.1 performed request GET http://localhost:21000/api/atlas/admin/status (127.0.0.1) at time 2016-11-16T17:36Z (AuditFilter:91) 2016-11-16 12:36:06,832 INFO - [qtp964346941-17 - d8126dcf-bafe-4ea5-8169-853fb70b89dd:] ~ Audit: UNKNOWN/127.0.0.1-127.0.0.1 performed request GET http://localhost:21000/api/atlas/admin/status (127.0.0.1) at time 2016-11-16T17:36Z (AUDIT:104) 2016-11-16 12:37:06,911 INFO - [qtp964346941-16 - e51663cb-3132-4bfd-abc7-28c941c1ae29:] ~ Audit: UNKNOWN/127.0.0.1 performed request GET http://localhost:21000/api/atlas/admin/status (127.0.0.1) at time 2016-11-16T17:37Z (AuditFilter:91) 2016-11-16 12:37:06,911 INFO - [qtp964346941-16 - e51663cb-3132-4bfd-abc7-28c941c1ae29:] ~ Audit: UNKNOWN/127.0.0.1-127.0.0.1 performed request GET http://localhost:21000/api/atlas/admin/status (127.0.0.1) at time 2016-11-16T17:37Z (AUDIT:104) tail -100f audit.log 2016-11-16 12:37:06,911 Audit: UNKNOWN/127.0.0.1-127.0.0.1 performed request GET http://localhost:21000/api/atlas/admin/status (127.0.0.1) at time 2016-11-16T17:37Z 2016-11-16 12:38:06,913 Audit: UNKNOWN/127.0.0.1-127.0.0.1 performed request GET http://localhost:21000/api/atlas/admin/status (127.0.0.1) at time 2016-11-16T17:38Z
Created 11-17-2016 02:29 PM
2016-11-16 13:37:19,351 ERROR - [main:] ~ Error while reading user.properties file, filepath=/etc/atlas/conf/users-credentials.properties (UserDao:75) java.io.FileNotFoundException: /etc/atlas/conf/users-credentials.properties (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:146) at java.io.FileInputStream.<init>(FileInputStream.java:101) at org.apache.atlas.web.dao.UserDao.loadFileLoginsDetails(UserDao.java:67) at org.apache.atlas.web.dao.UserDao.init(UserDao.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:346) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:299) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:132) at org.springframework.beans.factory.support.AbstractAuto
2016-11-16 13:37:19,574 ERROR - [main:] ~ SimpleAtlasAuthorizer could not be initialized properly due to : (SimpleAtlasAuthorizer:114) java.nio.file.NoSuchFileException: /etc/atlas/conf/policy-store.txt at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214) at java.nio.file.Files.newByteChannel(Files.java:317) at java.nio.file.Files.newByteChannel(Files.java:363) at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:380) at java.nio.file.Files.newInputStream(Files.java:108) at java.nio.file.Files.newBufferedReader(Files.java:2677) at java.nio.file.Files.readAllLines(Files.java:3033) at org.apache.atlas.authorize.simple.FileReaderUtil.readFile(FileReaderUtil.java:41) at org.apache.atlas.authorize.simple.SimpleAtlasAuthorizer.init(SimpleAtlasAuthorizer.java:92) at org.apache.atlas.web.filters.AtlasAuthorizationFilter.<init>(AtlasAuthorizationFilter.java:65) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
Make sure that, the above files are present and restart Atlas server. This should fix the issue.
Created 11-19-2016 04:37 AM
I tried all browsers and I cant get all from anyone
Created 11-19-2016 05:04 AM
Can you check on the atlas server machine if the Atlas process is running and 21000 port is used? If it is running fine, check if it is acessible from your laptop.
Created 11-19-2016 06:47 AM
Glad that my suggestion were helpful 🙂
Created 11-19-2016 06:44 AM
Ah it was the firewall , I installed KDE on the server it self and I can connect to the Atlas server from the local browswer, so port 21000 is being blocked from my laptop to the node running apache server.
thanks for all your help
Created 11-19-2016 07:53 AM
@Sami Ahmad Can you accept my reply as an answer instead of this one?
Created 11-19-2016 01:50 PM
I would love to but its not showing the "accept as answer" option on your message .
if the moderators are listening .. can you please accept Ayub's comment as answer ?