Skip to content

[ZEPPELIN-4757] Fix startup script errors/warnings#3735

Closed
alexott wants to merge 1 commit intoapache:masterfrom
alexott:ZEPPELIN-4757
Closed

[ZEPPELIN-4757] Fix startup script errors/warnings#3735
alexott wants to merge 1 commit intoapache:masterfrom
alexott:ZEPPELIN-4757

Conversation

@alexott
Copy link
Contributor

@alexott alexott commented Apr 15, 2020

What is this PR for?

Errors & warnings are produced from the checks that are assuming that Zeppelin is running
on Linux (getent is present) & in the container environment (/etc/passwd is
writable).

This patch fixes following:

  • added check for presence of the getent
  • added explicit check that script is running in the container by checking
    /proc/self/cgroup
  • also removed MaxPermSize JVM flag that isn't supported in Java 8

What type of PR is it?

Bug Fix

What is the Jira issue?

How should this be tested?

@alexott alexott added the bug label Apr 15, 2020
@Reamer
Copy link
Contributor

Reamer commented Apr 15, 2020

Hi @alexott,
thanks for improving the start within a container. Can you please add the same lines into interpreter.sh.

Errors & warnings are produced from the checks that are assuming that Zeppelin is running
on Linux (`getent` is present) & in the container environment (`/etc/passwd` is
writable).

This patch fixes following:
 - added check for presence of the `getent`
 - added explicit check that script is running in the container by checking
   `/proc/self/cgroup`
 - also removed `MaxPermSize` JVM flag that isn't supported in Java 8
@alexott
Copy link
Contributor Author

alexott commented Apr 15, 2020

@Reamer done...

@Leemoonsoo
Copy link
Member

LGTM!

@Reamer
Copy link
Contributor

Reamer commented Apr 17, 2020

LGTM
We should also cleanup MvnOpts in a follow-up PR with permsize.

@alexott
Copy link
Contributor Author

alexott commented Apr 17, 2020

Yes, I created a ZEPPELIN-4758 for it. I did here only because they were in the same shell scripts

@asfgit asfgit closed this in b877e38 Apr 17, 2020
asfgit pushed a commit that referenced this pull request Apr 17, 2020
### What is this PR for?

Errors & warnings are produced from the checks that are assuming that Zeppelin is running
on Linux (`getent` is present) & in the container environment (`/etc/passwd` is
writable).

This patch fixes following:
 - added check for presence of the `getent`
 - added explicit check that script is running in the container by checking
   `/proc/self/cgroup`
 - also removed `MaxPermSize` JVM flag that isn't supported in Java 8

### What type of PR is it?

Bug Fix

### What is the Jira issue?

* ZEPPELIN-4757

### How should this be tested?

* https://travis-ci.org/github/alexott/zeppelin/builds/675356068

Author: Alex Ott <alexott@apache.org>

Closes #3735 from alexott/ZEPPELIN-4757 and squashes the following commits:

ee1475a [Alex Ott] [ZEPPELIN-4757] Fix startup script errors/warnings

(cherry picked from commit b877e38)
Signed-off-by: Alex Ott <alexott@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants