-
Notifications
You must be signed in to change notification settings - Fork 36
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
Sample example which does not works #53
Comments
Could you be interested in help for the library development? |
Hallo, I have a similar issue. I tried to run the sample app, but I got the following error: Exception in thread "main" java.lang.NoSuchMethodError: org.apache.spark.Accumulator.<init>(Ljava/lang/Object;Lorg/apache/spark/AccumulatorParam;Lscala/Option;)V
at com.tribbloids.spookystuff.Metrics$.accumulator(SpookyContext.scala:20)
at com.tribbloids.spookystuff.Metrics$.$lessinit$greater$default$1(SpookyContext.scala:25)
at com.tribbloids.spookystuff.SpookyContext.<init>(SpookyContext.scala:68)
at com.tribbloids.spookystuff.SpookyContext.<init>(SpookyContext.scala:72)
at FTest$.main(FTest.scala:15)
at FTest.main(FTest.scala)
16/08/18 11:48:16 INFO SparkContext: Invoking stop() from shutdown hook
16/08/18 11:48:16 INFO SparkUI: Stopped Spark web UI at http://127.0.1.1:4040 The application has the following code: object FTest {
def main(args: Array[String]) {
//val logFile = "/home/ait/spark/README.md" // Should be some file on your system
val conf = new SparkConf().setAppName("Simple Application").setMaster("local[*]")
val sc = new SparkContext(conf)
assert(sc.parallelize(1 to 100).reduce(_ + _) == 5050)
val spooky = new SpookyContext(sc)
import spooky.dsl._
spooky.wget("https://news.google.com/?output=rss&q=barack%20obama").join(S"item title".texts)(
Wget(x"http://api.mymemory.translated.net/get?q=${'A}&langpair=en|fr"))('A ~ 'title, S"translatedText".text ~ 'translated).toDF()
}
} Could it be because of a wrong configuration? Thx in advance. |
Hello @DominikRoy this seems to me a version incompatibility. Use Spark dependencies of correct versions supported by your spookystuff version. |
I'm getting the same error and I'm wondering what version of spark I should be using? I don't see this specified in the documentation. Currently I'm trying spark 1.6.2 with scala 2.10.5 trying to use com.tribbloids.spookystuff:spookystuff-core:0.3.2 Have also tried with spark 2.1.1 (scala 2.11) but that broke even sooner. what version of spark works? also get the same error with spark 1.5.1 |
can you use the master branch (0.4.0-SNAPSHOT) by compiling on your
computer? Sorry about releasing very slowly, some other components are
still not close to feature freeze.
0.3.2 is very old and out of maintenance.
Yours Peng
…On Wed, 15 Nov, 2017 at 2:32 PM, nimbusgo ***@***.***> wrote:
I'm getting the same error and I'm wondering what version of spark I
should be using? I don't see this specified in the documentation.
Currently I'm trying spark 1.6.2 with scala 2.10.5 trying to use
com.tribbloids.spookystuff:spookystuff-core:0.3.2
Have also tried with spark 2.1.1 (scala 2.11) but that broke even
sooner.
what version of spark works?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
what version of spark would you recommend I use with 0.4.0-SNAPSHOT? also, should I just be adding it via
|
currently attempted (including spookystuff-core-0.4.0-SNAPSHOT.jar ) on spark 1.5.1 and 1.6.2 and I get an error when attempting this:
errors with:
org.apache.spark.ml is present, but I'm not sure why it's expecting org.apache.spark.ml.dsl to exist |
The version for 0.4.0-SNAPSHOT is Spark 1.6.3
Yours Peng
…On Wed, 15 Nov, 2017 at 3:05 PM, nimbusgo ***@***.***> wrote:
currently attempted on 1.5.1 and 1.6.2 and I get an error when
attempting this:
import com.tribbloids.spookystuff.actions._
import com.tribbloids.spookystuff.dsl._
import com.tribbloids.spookystuff.SpookyContext
//this is the entry point of all queries & configurations
val spooky = SpookyContext(sc)
errors with:
error: bad symbolic reference. A signature in AbstractConf.class
refers to term dsl
in package org.apache.spark.ml which is not available.
It may be completely missing from the current classpath, or the
version on
the classpath might be incompatible with the version used when
compiling AbstractConf.class.
error: bad symbolic reference. A signature in AbstractConf.class
refers to term utils
in value org.apache.spark.ml.dsl which is not available.
It may be completely missing from the current classpath, or the
version on
the classpath might be incompatible with the version used when
compiling AbstractConf.class.
<console>:36: error: bad symbolic reference. A signature in
AbstractConf.class refers to term messaging
in value org.apache.spark.ml.utils which is not available.
It may be completely missing from the current classpath, or the
version on
the classpath might be incompatible with the version used when
compiling AbstractConf.class.
val spooky = SpookyContext(sc)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
so, after some guesswork it looks like I should probably be including spookystuff-assembly-0.4.0-SNAPSHOT-spark1.6.jar which I'm doing now. currently got this happening now: guessing it's got something to do with java/py4j version inconsistencies |
I think its just Java version (you are using java 7). py4j shouldn't be
in my dependency list.
Yours Peng
…On Wed, 15 Nov, 2017 at 3:37 PM, nimbusgo ***@***.***> wrote:
so, after some guesswork it looks like I should probably be including
spookystuff-assembly-0.4.0-SNAPSHOT-spark1.6.jar which I'm doing now.
currently got this happening now:
java.lang.UnsupportedClassVersionError:
com/tribbloids/spookystuff/session/python/PythonProcess : Unsupported
major.minor version 52.0
guessing it's got something to do with java/py4j version
inconsistencies
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
... or install it into your maven local repository using mvn install.
Yours Peng
…On Wed, 15 Nov, 2017 at 3:37 PM, nimbusgo ***@***.***> wrote:
so, after some guesswork it looks like I should probably be including
spookystuff-assembly-0.4.0-SNAPSHOT-spark1.6.jar which I'm doing now.
currently got this happening now:
java.lang.UnsupportedClassVersionError:
com/tribbloids/spookystuff/session/python/PythonProcess : Unsupported
major.minor version 52.0
guessing it's got something to do with java/py4j version
inconsistencies
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Thanks for the advice, was able to get it functioning on the cluster without version errors now. I'm a little new to the library syntax and it seems the quickstart example is a little out of date for 0.4.0-SNAPSHOT. When executing this:
I get this error:
Are there any quickstart examples that work for 0.4.0-SNAPSHOT that I can take a look at? |
Yeah, a lot, can't help, better algorithms keep poping all the time.
I recommend you to refer to the test cases in integration submodule.
It serves as a short example to crawl this dummy website:
http://webscraper.io/test-sites.
Yours Peng
…On Thu, 16 Nov, 2017 at 4:31 PM, nimbusgo ***@***.***> wrote:
Thanks for the advice, was able to get it functioning on the cluster
without version errors now.
I'm a little new to the library syntax and it seems the quickstart
example is a little out of date for 0.4.0-SNAPSHOT.
When executing this:
spooky.wget("https://news.google.com/?output=rss&q=barack%20obama").join(S"item
title".texts){
Wget(x"http://api.mymemory.translated.net/get?q=${'A}&langpair=en|fr")
}('A ~ 'title, S"translatedText".text ~ 'translated).toDF()
I get this error:
error: com.tribbloids.spookystuff.rdd.FetchedDataset does not take
parameters
}('A ~ 'title, S"translatedText".text ~ 'translated).toDF()
Are there any quickstart examples that work for 0.4.0-SNAPSHOT that I
can take a look at?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Its been 13 days, should I close it? |
After check the code source, I see
The module mldsl should be published on maven repository, and add as dependancy in documentation page! |
The library looks interesting. I tried a simple example with a sample app but I got the following error
The application is pretty simple
Do you have any ideas?
The text was updated successfully, but these errors were encountered: