classpath

Hadoop HADOOP_CLASSPATH issues

余生长醉 提交于 2019-11-30 07:28:04
This question doesn't refer to distributing jars in the whole cluster for the workers to use them. It refers to specifying a number of additional libraries on the client machine. To be more specific: I'm trying to run the following command in order to retrieve the contents of a SequenceFile: /path/to/hadoop/script fs -text /path/in/HDFS/to/my/file It throws me this error: text: java.io.IOException: WritableName can't load class: util.io.DoubleArrayWritable I have a writable class called DoubleArrayWritable. In fact , on another computer everything works well. I tried to set the HADOOP

scala.tools.nsc.IMain within Play 2.1

柔情痞子 提交于 2019-11-30 07:13:07
问题 I googled a lot and am totally stuck now. I know, that there are similar questions but please read to the end. I have tried all proposed solutions and none did work. I am trying to use the IMain class from scala.tools.nsc within a Play 2.1 project (Using Scala 2.10.0). Controller Code This is the code, where I try to use the IMain in a Websocket. This is only for testing. object Scala extends Controller { def session = WebSocket.using[String] { request => val interpreter = new IMain() val

How to set eclipse to ignore the “Classpath Dependency Validator Message” Warning

本秂侑毒 提交于 2019-11-30 07:04:27
I would like it to have no warnings in my eclipse projects, but I get this one warning: Classpath entry org.eclipse.jdt.USER_LIBRARY/Liferay 6.1 GA Plugin API will not be exported or published. Runtime ClassNotFoundExceptions may result. from warning type Classpath Dependency Validator Message . I understand what eclipse is trying to say to me, but that is wrong, the library exists at the server and it is not right to export this with my projects. However, I need to set this warning in eclipse to ignore, how can I do this? Remove it here: Preferences -> Validation -> Classpath Dependency

Why is my updated Eclipse / Android setup not building my APK anymore?

落花浮王杯 提交于 2019-11-30 06:54:41
I had a working Eclipse setup with 3.6.2 and SDK tools from version 11, and it has been building my main project just fine for quite a while. For a different project, I thought I needed to upgrade my SDK to the latest and greatest - at this point API 14 (ICS 4.0). I cannot even reconstruct the steps I went through, but what happened was that my project would seem to build, but I would see that it would say that it was skipping a post-compiler step, and at the end I would have no APK. I also noticed that it updated my .classpath so that the output path was bin/classes instead of .bin. Along the

Is there a tool to discover if the same class exists in multiple jars in the classpath?

一笑奈何 提交于 2019-11-30 06:27:21
If you have two jars in your classpath that contain different versions of the same class, the classpath order becomes critical. I am looking for a tool that can detect and flag such potential conflicts in a given classpath or set of folders. Certainly a script that starts: classes=`mktemp` for i in `find . -name "*.jar"` do echo "File: $i" > $classes jar tf $i > $classes ... done with some clever sort/uniq/diff/grep/awk later on has potential, but I was wondering if anyone knows of any existing solutions. The Tattletale tool from JBoss is another candidate: "Spot if a class/package is located

facing trouble launching spoon.sh on amazon ec2 linux

╄→гoц情女王★ 提交于 2019-11-30 06:03:00
问题 I am quit new to linux and Amazon EC2. i configure JAVA_HOME by following below two link How to know JAVA_HOME_Variable bash_profile so current path in my bash_profile are export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.51.x86_64 export PATH=$PATH:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.51.x86_64/bin now i am trying to launch ./spoon.sh it is giving me error of Caused by: java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: no swt-pi-gtk-3740 in java.library.path no swt

How to include hbase-site.xml in the classpath

偶尔善良 提交于 2019-11-30 05:40:09
问题 I am currently trying to get my HBase code to use the settings specified in my hbase-site.xml. It seems to use default settings instead of what is specified in the hbase-site.xml config file. I have restarted the HBase cluster since updating the files, but it is still not using config files that I updated. The cluster I am using is 2 nodes, one of which is the master. The config files on both of the nodes specify the IP of the master node as the zookeeper quorum. I believe the problem is that

ClassPathResource does not get the classpath

孤者浪人 提交于 2019-11-30 04:57:37
In my application, I would like to use a resource that exist in a folder media/src/main/resources/testMediaExif To get that path, I used this piece of code, located in media/src/main/java/com/project/MyClass.java : ClassPathResource resource = new ClassPathResource("classpath:testMediaExif"); File file = resource.getFile(); String absolutePath = file.getAbsolutePath(); The error shown is: java.io.FileNotFoundException: class path resource [classpath:testMediaExif] cannot be resolved to URL because it does not exist If I change that code: ClassPathResource resource = new ClassPathResource(

Spark-submit ClassNotFound exception

若如初见. 提交于 2019-11-30 04:55:22
I'm having problems with a "ClassNotFound" Exception using this simple example: import org.apache.spark.SparkContext import org.apache.spark.SparkContext._ import org.apache.spark.SparkConf import java.net.URLClassLoader import scala.util.Marshal class ClassToRoundTrip(val id: Int) extends scala.Serializable { } object RoundTripTester { def test(id : Int) : ClassToRoundTrip = { // Get the current classpath and output. Can we see simpleapp jar? val cl = ClassLoader.getSystemClassLoader val urls = cl.asInstanceOf[URLClassLoader].getURLs urls.foreach(url => println("Executor classpath is:" + url

Ant classpath Order

孤街浪徒 提交于 2019-11-30 04:48:09
问题 How do I set the classpath order in ant? Specifically, When I am trying to run my ant build, I need it to pick up a class in a jar (jaxws-api.jar) instead of the same class which is in the jre. I am currently setting the classpath to explicitly include those jars however it seems to still pick up the jre first. What I am looking for is some type of equivalent to Order/Export in eclipse under the "Build Configuration" menu. Edit: I'll be more explicit. I have some classes which were generated