spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject spark git commit: [MINOR][BUILD] Fix Java Linter `LineLength` errors
Date Tue, 19 Jul 2016 10:57:44 GMT
Repository: spark
Updated Branches:
  refs/heads/branch-2.0 504aa6f7a -> eb1c20fa0


[MINOR][BUILD] Fix Java Linter `LineLength` errors

This PR fixes four java linter `LineLength` errors. Those are all `LineLength` errors, but
we had better remove all java linter errors before release.

After pass the Jenkins, `./dev/lint-java`.

Author: Dongjoon Hyun <dongjoon@apache.org>

Closes #14255 from dongjoon-hyun/minor_java_linter.

(cherry picked from commit 556a9437ac7b55079f5a8a91e669dcc36ca02696)
Signed-off-by: Sean Owen <sowen@cloudera.com>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/eb1c20fa
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/eb1c20fa
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/eb1c20fa

Branch: refs/heads/branch-2.0
Commit: eb1c20fa0b43dde6da69bdb21ad8b3f9124e2607
Parents: 504aa6f
Author: Dongjoon Hyun <dongjoon@apache.org>
Authored: Tue Jul 19 11:51:43 2016 +0100
Committer: Sean Owen <sowen@cloudera.com>
Committed: Tue Jul 19 11:57:37 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/spark/network/yarn/YarnShuffleService.java | 2 +-
 .../apache/spark/examples/sql/JavaSQLDataSourceExample.java    | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/eb1c20fa/common/network-yarn/src/main/java/org/apache/spark/network/yarn/YarnShuffleService.java
----------------------------------------------------------------------
diff --git a/common/network-yarn/src/main/java/org/apache/spark/network/yarn/YarnShuffleService.java
b/common/network-yarn/src/main/java/org/apache/spark/network/yarn/YarnShuffleService.java
index 4bc3c1a..b6feb55 100644
--- a/common/network-yarn/src/main/java/org/apache/spark/network/yarn/YarnShuffleService.java
+++ b/common/network-yarn/src/main/java/org/apache/spark/network/yarn/YarnShuffleService.java
@@ -114,7 +114,7 @@ public class YarnShuffleService extends AuxiliaryService {
   protected void serviceInit(Configuration conf) {
 
     // In case this NM was killed while there were running spark applications, we need to
restore
-    // lost state for the existing executors.  We look for an existing file in the NM's local
dirs.
+    // lost state for the existing executors. We look for an existing file in the NM's local
dirs.
     // If we don't find one, then we choose a file to use to save the state next time.  Even
if
     // an application was stopped while the NM was down, we expect yarn to call stopApplication()
     // when it comes back

http://git-wip-us.apache.org/repos/asf/spark/blob/eb1c20fa/examples/src/main/java/org/apache/spark/examples/sql/JavaSQLDataSourceExample.java
----------------------------------------------------------------------
diff --git a/examples/src/main/java/org/apache/spark/examples/sql/JavaSQLDataSourceExample.java
b/examples/src/main/java/org/apache/spark/examples/sql/JavaSQLDataSourceExample.java
index 2b94b9f..ec02c8b 100644
--- a/examples/src/main/java/org/apache/spark/examples/sql/JavaSQLDataSourceExample.java
+++ b/examples/src/main/java/org/apache/spark/examples/sql/JavaSQLDataSourceExample.java
@@ -110,11 +110,13 @@ public class JavaSQLDataSourceExample {
     usersDF.select("name", "favorite_color").write().save("namesAndFavColors.parquet");
     // $example off:generic_load_save_functions$
     // $example on:manual_load_options$
-    Dataset<Row> peopleDF = spark.read().format("json").load("examples/src/main/resources/people.json");
+    Dataset<Row> peopleDF =
+      spark.read().format("json").load("examples/src/main/resources/people.json");
     peopleDF.select("name", "age").write().format("parquet").save("namesAndAges.parquet");
     // $example off:manual_load_options$
     // $example on:direct_sql$
-    Dataset<Row> sqlDF = spark.sql("SELECT * FROM parquet.`examples/src/main/resources/users.parquet`");
+    Dataset<Row> sqlDF =
+      spark.sql("SELECT * FROM parquet.`examples/src/main/resources/users.parquet`");
     // $example off:direct_sql$
   }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message