atlas git commit: ATLAS-2971: Atlas fails to start if there is a empty pid file
Repository: atlas Updated Branches: refs/heads/branch-1.0 d3aaef05f -> 9d6ca7aae ATLAS-2971: Atlas fails to start if there is a empty pid file Signed-off-by: Sarath Subramanian (cherry picked from commit 945de013f5466ffcf71d16c6ec1772fdee83e2f6) Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/9d6ca7aa Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/9d6ca7aa Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/9d6ca7aa Branch: refs/heads/branch-1.0 Commit: 9d6ca7aae861e474049960867ecdc4520a7daf0d Parents: d3aaef0 Author: Sandeep Nemuri Authored: Fri Nov 16 14:16:03 2018 -0800 Committer: Sarath Subramanian Committed: Fri Nov 16 14:16:48 2018 -0800 -- distro/src/bin/atlas_start.py | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) -- http://git-wip-us.apache.org/repos/asf/atlas/blob/9d6ca7aa/distro/src/bin/atlas_start.py -- diff --git a/distro/src/bin/atlas_start.py b/distro/src/bin/atlas_start.py index 25f1959..963faf4 100755 --- a/distro/src/bin/atlas_start.py +++ b/distro/src/bin/atlas_start.py @@ -101,13 +101,13 @@ def main(): pf = file(atlas_pid_file, 'r') pid = pf.read().strip() pf.close() - - if mc.exist_pid((int)(pid)): - if is_setup: - print "Cannot run setup when server is running." - mc.server_already_running(pid) - else: - mc.server_pid_not_running(pid) + if pid != "": + if mc.exist_pid((int)(pid)): + if is_setup: + print "Cannot run setup when server is running." + mc.server_already_running(pid) + else: + mc.server_pid_not_running(pid) if is_hbase and mc.is_hbase_local(confdir): print "configured for local hbase."
atlas git commit: ATLAS-2971: Atlas fails to start if there is a empty pid file
Repository: atlas Updated Branches: refs/heads/master b96c6b7a9 -> 945de013f ATLAS-2971: Atlas fails to start if there is a empty pid file Signed-off-by: Sarath Subramanian Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/945de013 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/945de013 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/945de013 Branch: refs/heads/master Commit: 945de013f5466ffcf71d16c6ec1772fdee83e2f6 Parents: b96c6b7 Author: Sandeep Nemuri Authored: Fri Nov 16 14:16:03 2018 -0800 Committer: Sarath Subramanian Committed: Fri Nov 16 14:16:03 2018 -0800 -- distro/src/bin/atlas_start.py | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) -- http://git-wip-us.apache.org/repos/asf/atlas/blob/945de013/distro/src/bin/atlas_start.py -- diff --git a/distro/src/bin/atlas_start.py b/distro/src/bin/atlas_start.py index 25f1959..963faf4 100755 --- a/distro/src/bin/atlas_start.py +++ b/distro/src/bin/atlas_start.py @@ -101,13 +101,13 @@ def main(): pf = file(atlas_pid_file, 'r') pid = pf.read().strip() pf.close() - - if mc.exist_pid((int)(pid)): - if is_setup: - print "Cannot run setup when server is running." - mc.server_already_running(pid) - else: - mc.server_pid_not_running(pid) + if pid != "": + if mc.exist_pid((int)(pid)): + if is_setup: + print "Cannot run setup when server is running." + mc.server_already_running(pid) + else: + mc.server_pid_not_running(pid) if is_hbase and mc.is_hbase_local(confdir): print "configured for local hbase."
atlas git commit: ATLAS-2971: Atlas fails to start if there is a empty pid file
Repository: atlas Updated Branches: refs/heads/branch-0.8 4ca33fcbf -> 29f7e3f5d ATLAS-2971: Atlas fails to start if there is a empty pid file Signed-off-by: Sarath Subramanian (cherry picked from commit 945de013f5466ffcf71d16c6ec1772fdee83e2f6) Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/29f7e3f5 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/29f7e3f5 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/29f7e3f5 Branch: refs/heads/branch-0.8 Commit: 29f7e3f5d56e9502eafa7e75840161bc479b3e0a Parents: 4ca33fc Author: Sandeep Nemuri Authored: Fri Nov 16 14:16:03 2018 -0800 Committer: Sarath Subramanian Committed: Fri Nov 16 14:16:33 2018 -0800 -- distro/src/bin/atlas_start.py | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) -- http://git-wip-us.apache.org/repos/asf/atlas/blob/29f7e3f5/distro/src/bin/atlas_start.py -- diff --git a/distro/src/bin/atlas_start.py b/distro/src/bin/atlas_start.py index 5ea93fc..239e64d 100755 --- a/distro/src/bin/atlas_start.py +++ b/distro/src/bin/atlas_start.py @@ -101,13 +101,13 @@ def main(): pf = file(atlas_pid_file, 'r') pid = pf.read().strip() pf.close() - - if mc.exist_pid((int)(pid)): - if is_setup: - print "Cannot run setup when server is running." - mc.server_already_running(pid) - else: - mc.server_pid_not_running(pid) + if pid != "": + if mc.exist_pid((int)(pid)): + if is_setup: + print "Cannot run setup when server is running." + mc.server_already_running(pid) + else: + mc.server_pid_not_running(pid) if is_hbase and mc.is_hbase_local(confdir): print "configured for local hbase."