[ https://issues.apache.org/jira/browse/ATLAS-4369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17414468#comment-17414468 ]
ASF subversion and git services commented on ATLAS-4369: -------------------------------------------------------- Commit 6e4d369fd8b1f1529af14261d084c877109b58c6 in atlas's branch refs/heads/master from Disha Talreja [ https://gitbox.apache.org/repos/asf?p=atlas.git;h=6e4d369 ] ATLAS-4369: import-hive.sh does not write logs to /var/log/atlas/import-hive.log file Signed-off-by: Sarath Subramanian <sar...@apache.org> > import-hive.sh does not write logs to /var/log/atlas/import-hive.log file, > instead write into ${atlas.log.file} under the directory "${atlas.log.dir}" > ------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: ATLAS-4369 > URL: https://issues.apache.org/jira/browse/ATLAS-4369 > Project: Atlas > Issue Type: Bug > Components: atlas-core > Reporter: Umesh Padashetty > Assignee: Disha Talreja > Priority: Major > Attachments: ATLAS-4369.patch > > > When the import scripts like > * import-kafka.sh > * import-hive.sh > * import-hbase.sh > are run, the corresponding logs are written into > * /var/log/atlas/import-kafka.log > * /var/log/atlas/import-hive.log > * /var/log/atlas/import-hbase.log > /var/log/atlas/import-kafka.log and /var/log/atlas/import-hbase.log logs are > correctly written. But when import-hive.sh is ran, > /var/log/atlas/import-hive.log is not created or written to > {code:java} > [root@ccycloud-1 atlas]# ls -ltr > total 10988 > drwxr-xr-x 2 cstm_atlas cstm_atlas 4096 Jul 16 06:55 jstacks > drwxr-xr-x 4 root root 4096 Jul 16 06:55 audit > -rw-r--r-- 1 cstm_atlas cstm_atlas 0 Jul 16 06:55 metric.log > -rw-r--r-- 1 cstm_atlas cstm_atlas 0 Jul 16 06:55 failed.log > drwxr-xr-x 2 cstm_atlas cstm_atlas 4096 Jul 18 03:52 support-bundle > -rw-r--r-- 1 root root 21573 Jul 22 09:56 import-kafka.log > -rw-r--r-- 1 root root 159459 Jul 22 09:58 import-hbase.log > -rw-r--r-- 1 cstm_atlas cstm_atlas 19429 Jul 22 10:12 > gc-worker.log.0.current > -rw-r--r-- 1 cstm_atlas cstm_atlas 179081 Jul 22 10:22 audit.log > -rw-r--r-- 1 cstm_atlas cstm_atlas 10840903 Jul 22 10:23 application.log > {code} > whereas it creates a directory with the name ${atlas.log.dir} and a file with > the name ${atlas.log.file} under it > {code:java} > [root@ccycloud-1 hook-bin]# ls -ltr > total 44 > -rwxr-xr-x 1 root root 3892 Jul 14 13:09 import-kafka.sh > -rwxr-xr-x 1 root root 4547 Jul 14 13:09 import-hive.sh > -rwxr-xr-x 1 root root 4341 Jul 14 13:09 import-hbase.sh > drwxr-sr-x 2 root root 4096 Jul 22 10:23 ${atlas.log.dir} > -rw-r--r-- 1 root root 20094 Jul 22 10:23 derby.log {code} > The import-hive.sh logs are written into ${atlas.log.file} > {code:java} > [root@ccycloud-1 ${atlas.log.dir}]# ls -ltra > total 48 > drwxr-sr-x 3 root root 4096 Jul 22 10:23 .. > drwxr-sr-x 2 root root 4096 Jul 22 10:23 . > -rw-r--r-- 1 root root 40960 Jul 22 10:23 ${atlas.log.file} {code} > The import-hive.sh logs should be written into /var/log/atlas/import-hive.log -- This message was sent by Atlassian Jira (v8.3.4#803005)