Closed botpsv closed 5 years ago
I've tried to decrease --driver-memory 48G --executor-memory 48GB
from ./run_application_mode.sh
to --driver-memory 8G --executor-memory 8GB
However I get these errors:
root@homepc:~/athena/athena-tester# ./run_application_mode.sh
Exception in thread "main" java.lang.NullPointerException
at athena.northbound.impl.MachineLearningManagerImpl.<init>(MachineLearningManagerImpl.java:136)
at athena.user.application.Main.<init>(Main.java:115)
at athena.user.application.Main.main(Main.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:731)
at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:181)
at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:206)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:121)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
I've tried to decrease
--driver-memory 48G --executor-memory 48GB
from./run_application_mode.sh
to--driver-memory 8G --executor-memory 8GB
However I get these errors:
root@homepc:~/athena/athena-tester# ./run_application_mode.sh Exception in thread "main" java.lang.NullPointerException at athena.northbound.impl.MachineLearningManagerImpl.<init>(MachineLearningManagerImpl.java:136) at athena.user.application.Main.<init>(Main.java:115) at athena.user.application.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:731) at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:181) at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:206) at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:121) at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
I assume that I'm experiencing the same issue.
There might be some bug from the code
you can found it in ~/athena/athena-tester/src/main/java/athena/user/application/
Hey Ben, thanks for responding to my issues
After seeing the issues from #5 @shlee89 .
I have analyzed the issues and concluded that every time you open a new terminal, the configuration like the exported environment variable will be lost.
Therefore every time you open a new terminal you have to execute the bash script.
In this case, all environment variables are located at athena / tools / dev / bash_profile.
Let's say we are all lazy folks haha, it would be better to copy the contents of Athena's bash_profile
to the native bash script on the machine (that we called bashrc
).
By executing the source ~/.bashrc
command every time you open a new terminal, it will save a lot of time.
My previous mistake was because it wasn't an environment variable associated with Athena or every time I opened a new terminal the environment variable configuration was lost.
One more thing, just add these line below to your bash script. The last line depends on what you will configure (single or distributed) e.g mine -> single
export ATHENA_ROOT=~/athena
source $ATHENA_ROOT/athena-tool/config/athena-config-env-single
source: https://askubuntu.com/questions/395212/why-environment-variable-disappears-after-terminal-reopen https://unix.stackexchange.com/questions/102051/exported-variable-disappears-when-i-open-a-new-terminal
Thats all.
Thank you for providing detailed instruction to resolve this issue.
On Wed, May 29, 2019, 12:48 PM Dave notifications@github.com wrote:
Closed #8 https://github.com/shlee89/athena/issues/8.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shlee89/athena/issues/8?email_source=notifications&email_token=ABOCAGODNPIIAHROYXOOTM3PXX4IDA5CNFSM4HP3W442YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGORV6PSPI#event-2373777725, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOCAGIIWQOLK2RD3QNGW3LPXX4IDANCNFSM4HP3W44Q .
Hi there, When i run
./run_application_mode.sh
, an error occurs as the output below:Here is the content of the generated hs_err_pid10793.log file:
This line from crash log seems interesting to me:
and this one that I presume my own memory
Memory: 4k page, physical 8064924k(609760k free), swap 1952764k(1900528k free)
Does it mean that the machine has memory but is running out of ram/swap space? How much ram/swap does it need to run Athena in 'batch mode'? Or Should i decrease java heap 'Xms Xmx' size?
Thanks in advance