mneethiraj commented on code in PR #1195:
URL: https://github.com/apache/ranger/pull/1195#discussion_r3884926437


##########
dev-support/ranger-docker/docker-compose.ranger-audit-service.yml:
##########
@@ -134,8 +134,8 @@ services:
     hostname: ranger-opensearch.rangernw
     volumes:
       - 
./scripts/opensearch/opensearch.yml:/usr/share/opensearch/config/opensearch.yml
-      - opensearch-data:/usr/share/opensearch/data

Review Comment:
   Thanks @kumaab for the details. With named volumes, startup of 
ranger-opensearch container fails in my laptop with the following error. Hence 
I changed to bind mounts. Perhaps I am missing something in my local?
   
   ```
   $ docker logs -f ranger-opensearch
   Enabling OpenSearch Security Plugin
   Enabling execution of install_demo_configuration.sh for OpenSearch Security 
Plugin
   OpenSearch 2.12.0 onwards, the OpenSearch Security Plugin a change that 
requires an initial password for 'admin' user.
   Please define an environment variable 'OPENSEARCH_INITIAL_ADMIN_PASSWORD' 
with a strong password string.
   If a password is not provided, the setup will quit.
    For more details, please visit: 
https://opensearch.org/docs/latest/install-and-configure/install-opensearch/docker/
   ### OpenSearch Security Demo Installer
   ### ** Warning: Do not use on production or public reachable systems **
   OpenSearch install type: rpm/deb on Linux 6.12.76-linuxkit aarch64
   OpenSearch config dir: /usr/share/opensearch/config/
   OpenSearch config file: /usr/share/opensearch/config/opensearch.yml
   OpenSearch bin dir: /usr/share/opensearch/bin/
   OpenSearch plugins dir: /usr/share/opensearch/plugins/
   OpenSearch lib dir: /usr/share/opensearch/lib/
   Detected OpenSearch Version: 3.8.0
   Detected OpenSearch Security Version: 3.8.0.0
   /usr/share/opensearch/config/opensearch.yml seems to be already configured 
for Security. Quit.
   Enabling execution of 
OPENSEARCH_HOME/bin/opensearch-performance-analyzer/performance-analyzer-agent-cli
 for OpenSearch Performance Analyzer Plugin
   ./opensearch-docker-entrypoint.sh: line 60: 
/usr/share/opensearch/logs/PerformanceAnalyzer.log: Permission denied
   Exception in thread "main" java.lang.RuntimeException: starting java failed 
with [1]
   output:
   [0.000s][error][logging] Error opening log file 'logs/gc.log': Permission 
denied
   [0.000s][error][logging] Initialization of output 'file=logs/gc.log' using 
options 'filecount=32,filesize=64m' failed.
   error:
   Could not rename log file 'logs/gc.log' to 'logs/gc.log.03' (Permission 
denied).
   Invalid -Xlog option 
'-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m',
 see error log for details.
   Error: Could not create the Java Virtual Machine.
   Error: A fatal exception has occurred. Program will exit.
        at 
org.opensearch.tools.launchers.JvmErgonomics.flagsFinal(JvmErgonomics.java:125)
        at 
org.opensearch.tools.launchers.JvmErgonomics.finalJvmOptions(JvmErgonomics.java:87)
        at 
org.opensearch.tools.launchers.JvmErgonomics.choose(JvmErgonomics.java:70)
        at 
org.opensearch.tools.launchers.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:150)
        at 
org.opensearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:108)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to