-
Notifications
You must be signed in to change notification settings - Fork 33
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
ARC reader string vs int error on record length #492
Comments
Looks like this can effect older versions of |
ruebot
added a commit
that referenced
this issue
May 18, 2022
* fix discardDate issue * update tests for #494 * add test for #493 * add test for #532 * move issue specific tests to their own directory * add copyright statement to SparklingArchiveRecord * move webarchive-commons back to 1.1.9 * resolves #532 * resolves #494 * resolves #493 * resolves #492 * resolves #317 * resolves #260 * resolves #182 * resolves #76 * resolves #74 * resolves #73 * resolves #23 * resolves #18
Tested on the issue-494 branch with Java 11 and Spark 3.0.3 as part of #533 testing (with only 8G of RAM!!): $ export JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64 ./spark-shell --master local[8] --driver-memory 8g --jars /home/ruestn/aut/target/aut-0.91.1-SNAPSHOT-fatjar.jar import io.archivesunleashed._
import io.archivesunleashed.udfs._
import io.archivesunleashed.app._
sc.setLogLevel("INFO")
// Web archive collection; web pages.
val webpages = RecordLoader.loadArchives("/tuna1/scratch/nruest/auk_collection_testing/11989/warcs/*", sc)
.webpages()
// Web archive collection; web graph.
val webgraph = RecordLoader.loadArchives("/tuna1/scratch/nruest/auk_collection_testing/11989/warcs/*", sc)
.webgraph()
// Domains file.
webpages.groupBy(removePrefixWWW(extractDomain($"Url")).alias("url"))
.count()
.sort($"count".desc)
.write.csv("/tuna1/scratch/nruest/auk_collection_testing/11989/all-domains")
// Full-text.
webpages.select($"crawl_date", removePrefixWWW(extractDomain(($"url")).alias("domain")), $"url", $"content")
.write.csv("/tuna1/scratch/nruest/auk_collection_testing/11989k/full-text")
// GraphML
val graph = webgraph.groupBy(
$"crawl_date",
removePrefixWWW(extractDomain($"src")).as("src_domain"),
removePrefixWWW(extractDomain($"dest")).as("dest_domain"))
.count()
.filter(!($"dest_domain"===""))
.filter(!($"src_domain"===""))
.filter($"count" > 5)
.orderBy(desc("count"))
WriteGraphML(graph.collect(), "/tuna1/scratch/nruest/auk_collection_testing/11989/example.graphml") Everything completed successfully. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Job crashes on
java.lang.NumberFormatException
To Reproduce
Any of the three auk derivatives commands on these three ARCs:
Expected behavior
We should handle this exception better. Catch it an move on, or something better. The entire process shouldn't fail because of it.
Environment information
The text was updated successfully, but these errors were encountered: