First time user - Error

12 views
Skip to first unread message

vaishnav kovvuri

unread,
Aug 19, 2014, 4:35:48 PM8/19/14
to tachyo...@googlegroups.com
Hi,
 I performed the steps mentioned at http://tachyon-project.org/Running-Tachyon-Locally.html and the tried to access the webpage http://localhost:19999 to verify if tachyon is running. I experience the following error. I am still debugging this, but wondering if anyone experienced the same.

Thanks,
Vaishnav

org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP

PWC6199: Generated servlet error:
The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files


	at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:126)
	at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:296)
	at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:372)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:433)
	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:476)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:447)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:574)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038)

Aaron Davidson

unread,
Aug 19, 2014, 8:04:49 PM8/19/14
to vaishnav kovvuri, tachyo...@googlegroups.com
I have had a similar issue where Jasper said there was no jdk (though I was running via a jdk). The workaround we used was to add "-Dorg.apache.jasper.compiler.disablejsr199=true" to TACHYON_JAVA_OPTS in tachyon-env.sh, to make it stop trying to compile stuff.


--
You received this message because you are subscribed to the Google Groups "Tachyon Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tachyon-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Haoyuan Li

unread,
Aug 20, 2014, 5:09:21 PM8/20/14
to Aaron Davidson, vaishnav kovvuri, tachyo...@googlegroups.com
Thanks Aaron.

Vaishnav,

Does the fix work? The "-Dorg.apache.jasper.compiler.disablejsr199=true" in also in the tachyon-env.sh.template.

Cheers,

Haoyuan
--
Haoyuan Li
AMPLab, EECS, UC Berkeley

vaishnav kovvuri

unread,
Aug 21, 2014, 3:14:44 PM8/21/14
to Haoyuan Li, Aaron Davidson, tachyo...@googlegroups.com
Haoyuan,
 Thanks Aaron. No, it did not help me. Still encountering the error.

Thanks,
Vaishnav

David Capwell

unread,
Aug 21, 2014, 4:47:00 PM8/21/14
to tachyo...@googlegroups.com, haoyu...@gmail.com, aa...@databricks.com
What version of java are you using?  I know that the current code doesn't work with java 8.

vaishnav kovvuri

unread,
Aug 22, 2014, 2:59:24 AM8/22/14
to David Capwell, tachyo...@googlegroups.com, Haoyuan Li, Aaron Davidson
I tried both java8 & java7. UI is giving me error.

when I run "./bin/tachyon runTest Basic CACHE_THROUGH", tests are all successful. That's at least good.
Still I cannot see anything in UI.

Haoyuan Li

unread,
Aug 22, 2014, 10:44:44 AM8/22/14
to vaishnav kovvuri, David Capwell, tachyo...@googlegroups.com, Aaron Davidson
Could you copy and paste your tachyon-env.sh?

Haoyuan

vaishnav kovvuri

unread,
Aug 22, 2014, 4:46:09 PM8/22/14
to Haoyuan Li, David Capwell, tachyo...@googlegroups.com, Aaron Davidson
Here is my tachyon-env.sh
----------------------------------------
if [[ `uname -a` == Darwin* ]]; then
  # Assuming Mac OS X
  export JAVA_HOME=${JAVA_HOME:-$(/usr/libexec/java_home)}
  export TACHYON_RAM_FOLDER=/Volumes/ramdisk
  export TACHYON_JAVA_OPTS="-Djava.security.krb5.realm= -Djava.security.krb5.kdc="
else
  # Assuming Linux
  if [ -z "$JAVA_HOME" ]; then
    if [ -d /usr/lib/jvm/java-7-oracle ]; then
      export JAVA_HOME=/usr/lib/jvm/java-7-oracle
    else
      # openjdk will set this
      if [ -d /usr/lib/jvm/jre-1.7.0 ]; then
        export JAVA_HOME=/usr/lib/jvm/jre-1.7.0
      fi
    fi
  fi
  export TACHYON_RAM_FOLDER=/mnt/ramdisk
fi

if [ -z "$JAVA_HOME" ]; then
  export JAVA_HOME="$(dirname $(which java))/.."
fi

export JAVA="$JAVA_HOME/bin/java"
export TACHYON_MASTER_ADDRESS=localhost
#export TACHYON_UNDERFS_ADDRESS=$TACHYON_HOME/underfs
export TACHYON_UNDERFS_ADDRESS=/tmp
#export TACHYON_UNDERFS_ADDRESS=hdfs://localhost:9000
export TACHYON_WORKER_MEMORY_SIZE=1GB
export TACHYON_UNDERFS_HDFS_IMPL=org.apache.hadoop.hdfs.DistributedFileSystem

CONF_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

export TACHYON_JAVA_OPTS+="
  -Dlog4j.configuration=file:$CONF_DIR/log4j.properties
  -Dtachyon.debug=false
  -Dtachyon.underfs.address=$TACHYON_UNDERFS_ADDRESS
  -Dtachyon.underfs.hdfs.impl=$TACHYON_UNDERFS_HDFS_IMPL
  -Dtachyon.data.folder=$TACHYON_UNDERFS_ADDRESS/tmp/tachyon/data
  -Dtachyon.workers.folder=$TACHYON_UNDERFS_ADDRESS/tmp/tachyon/workers
  -Dtachyon.worker.memory.size=$TACHYON_WORKER_MEMORY_SIZE
  -Dtachyon.worker.data.folder=$TACHYON_RAM_FOLDER/tachyonworker/
  -Dtachyon.master.hostname=$TACHYON_MASTER_ADDRESS
  -Dtachyon.master.journal.folder=$TACHYON_HOME/journal/
  -Dorg.apache.jasper.compiler.disablejsr199=true
  -Djava.net.preferIPv4Stack=true
  -Dorg.apache.jasper.compiler.disablejsr199=true
"

# Master specific parameters. Default to TACHYON_JAVA_OPTS.
export TACHYON_MASTER_JAVA_OPTS="$TACHYON_JAVA_OPTS"

# Worker specific parameters that will be shared to all workers. Default to TACHYON_JAVA_OPTS.
export TACHYON_WORKER_JAVA_OPTS="$TACHYON_JAVA_OPTS"
------------------------------------------------------------------------------------------------
and my java version
[root@localhost tachyon]# java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
-------------------------------------------------------------------------------------------------

Thanks,
Vaishnav

vaishnav kovvuri

unread,
Aug 23, 2014, 4:21:24 AM8/23/14
to Haoyuan Li, David Capwell, tachyo...@googlegroups.com, Aaron Davidson
Just to close the loop - I re-imaged my machine with ubuntu 12.04 LTS and everything (including webpage) came up correctly.

Thanks,
Vaishnav

David Capwell

unread,
Aug 23, 2014, 10:51:16 AM8/23/14
to vaishnav kovvuri, tachyo...@googlegroups.com, Aaron Davidson, Haoyuan Li

Thanks for the feedback.  Can you tell us what the system was like before?

vaishnav kovvuri

unread,
Aug 24, 2014, 2:22:20 AM8/24/14
to David Capwell, tachyo...@googlegroups.com, Aaron Davidson, Haoyuan Li
Before I used Centos6.5 and now ubuntu 12.04LTS


Mubarak Seyed

unread,
Aug 25, 2014, 12:40:52 AM8/25/14
to tachyo...@googlegroups.com
https://spark-project.atlassian.net/browse/TACHYON-98

Jetty needs to be upgraded for Java 8

-Mubarak

Haoyuan Li

unread,
Aug 25, 2014, 1:51:23 PM8/25/14
to Mubarak Seyed, tachyo...@googlegroups.com
Thanks guys!

Haoyuan


--
You received this message because you are subscribed to the Google Groups "Tachyon Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tachyon-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages