Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用本机方法加载文件时,不要将下划线替换为空格_Java_Apache Spark_Pyspark_Apache Spark Sql_Spark Streaming - Fatal编程技术网

Java 使用本机方法加载文件时,不要将下划线替换为空格

Java 使用本机方法加载文件时,不要将下划线替换为空格,java,apache-spark,pyspark,apache-spark-sql,spark-streaming,Java,Apache Spark,Pyspark,Apache Spark Sql,Spark Streaming,我在Spark工作中加载了很多文件,它们都有这样的名称:“file\u owner.extension”。我用来阅读它们的代码是: JavaPairRDD<String, PortableDataStream> imageByteRDD = jsc.binaryFiles(sourcePath); fileName extracted by the key of the PairRDD created as above: Capture11 (Custom).PNG fileNa

我在Spark工作中加载了很多文件,它们都有这样的名称:“file\u owner.extension”。我用来阅读它们的代码是:

 JavaPairRDD<String, PortableDataStream> imageByteRDD = jsc.binaryFiles(sourcePath);
fileName extracted by the key of the PairRDD created as above: Capture11 (Custom).PNG
fileName extracted with a FileVisitor in Java 1.7: Capture11_(Custom).PNG