Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set log file path #1571

Open
javapark1 opened this issue Jul 8, 2022 · 0 comments
Open

Unable to set log file path #1571

javapark1 opened this issue Jul 8, 2022 · 0 comments

Comments

@javapark1
Copy link

I'm getting the following exception. Please see the log file name which gets changed by the server. This occurs with v1.3.1. All prior versions work fine.

snappy server start -dir=/Users/dpark/Padogrid/workspaces/rwe-test/myws/clusters/mysnappy/run/mysnappy-padomac.local-01 -heap-size=1g -name=mysnappy-padomac.local-01 -locators=padomac.local:10444 -spark.ui.port=5050 -log-file=/Users/dpark/Padogrid/workspaces/rwe-test/myws/clusters/mysnappy/log/mysnappy-padomac.local-01.log -statistic-archive-file=/Users/dpark/Padogrid/workspaces/rwe-test/myws/clusters/mysnappy/stats/mysnappy-padomac.local-01.gfs -bind-address=padomac.local -server-bind-address=padomac.local -client-bind-address=localhost -hostname-for-clients=localhost -J-Dpado.vm.id=mysnappy-padomac.local-01 -J-Dpadogrid.workspace=myws -J-Dpadogrid.rwe=rwe-test -J-Dlog4j.configurationFile=/Users/dpark/Padogrid/workspaces/rwe-test/myws/clusters/mysnappy/etc/log4j2.properties -J-Dcom.sun.management.jmxremote.port=12111 -J-Dcom.sun.management.jmxremote.ssl=false -J-Dcom.sun.management.jmxremote.authenticate=false -J-Xdebug -J-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9211 -J-javaagent:/Users/dpark/Padogrid/products/padogrid_0.9.19-SNAPSHOT/lib/jmx_prometheus_javaagent-0.15.0.jar=8201:/Users/dpark/Padogrid/workspaces/rwe-test/myws/clusters/mysnappy/etc/prometheus.yml -J-Xloggc:/Users/dpark/Padogrid/workspaces/rwe-test/myws/clusters/mysnappy/log/mysnappy-padomac.local-01-gc.log -J-XX:+PrintGCDetails -J-XX:+PrintGCDateStamps -J-Djava.net.preferIPv4Stack=true -J-XX:+UseParNewGC -J-XX:+UseConcMarkSweepGC -J-XX:CMSInitiatingOccupancyFraction=75 -J-Dgemfire.server-bind-address=padomac.local -J-DgemfirePropertyFile=/Users/dpark/Padogrid/workspaces/rwe-test/myws/clusters/mysnappy/etc/gemfirexd.properties -classpath=/Users/dpark/Padogrid/workspaces/rwe-test/myws/clusters/mysnappy/plugins/:/Users/dpark/Padogrid/workspaces/rwe-test/myws/clusters/mysnappy/lib/:/Users/dpark/Padogrid/workspaces/rwe-test/myws/plugins/:/Users/dpark/Padogrid/workspaces/rwe-test/myws/lib/:/Users/dpark/Padogrid/products/padogrid_0.9.19-SNAPSHOT/snappydata/plugins/:/Users/dpark/Padogrid/products/padogrid_0.9.19-SNAPSHOT/snappydata/lib/:/Users/dpark/Padogrid/products/padogrid_0.9.19-SNAPSHOT/lib/:/Users/dpark/Padogrid/products/snappydata-1.3.1-HF-1-bin/jars/
Exception in thread "main" java.io.IOException: Cannot run program "/Library/Java/JavaVirtualMachines/jdk1.8.0_311.jdk/Contents/Home/jre/bin/java" (in directory "/Users/dpark/Padogrid/workspaces/rwe-test/myws/clusters/mysnappy/run/mysnappy-padomac.local-01"): /Users/dpark/Padogrid/workspaces/rwe-test/myws/clusters/mysnappy/run/mysnappy-padomac.local-01/start_/Users/dpark/Padogrid/workspaces/rwe-test/myws/clusters/mysnappy/log/mysnappy-padomac.local-01.log (No such file or directory)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at io.snappydata.tools.QuickLauncher.start(QuickLauncher.java:240)
at io.snappydata.tools.QuickLauncher.main(QuickLauncher.java:72)
Caused by: java.io.FileNotFoundException: /Users/dpark/Padogrid/workspaces/rwe-test/myws/clusters/mysnappy/run/mysnappy-padomac.local-01/start_/Users/dpark/Padogrid/workspaces/rwe-test/myws/clusters/mysnappy/log/mysnappy-padomac.local-01.log (No such file or directory)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at java.lang.ProcessImpl.start(ProcessImpl.java:115)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant