Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[SPARK-22830] Requested changes are being addressed
  • Loading branch information
chetkhatri committed Dec 19, 2017
commit 9da7e369d5bed9c7ee57c81e7ab2b4e9fcc72fc5
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ object DFSReadWriteTest {
}

private def printUsage(): Unit = {
val usage = s"""DFS Read-Write Test
Usage: localFile dfsDir
localFile - (string) local file to use in test
dfsDir - (string) DFS directory for read/write tests"""
val usage = """DFS Read-Write Test
|Usage: localFile dfsDir
|localFile - (string) local file to use in test
|dfsDir - (string) DFS directory for read/write tests""".stripMargin

println(usage)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ object LocalALS {

def showWarning() {
System.err.println(
s"""WARN: This is a naive implementation of ALS and is given as an example!
"""WARN: This is a naive implementation of ALS and is given as an example!
|Please use org.apache.spark.ml.recommendation.ALS
|for more conventional use.
""".stripMargin)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ object LocalFileLR {

def showWarning() {
System.err.println(
s"""WARN: This is a naive implementation of Logistic Regression and is given as an example!
"""WARN: This is a naive implementation of Logistic Regression and is given as an example!
|Please use org.apache.spark.ml.classification.LogisticRegression
|for more conventional use.
""".stripMargin)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ object LocalKMeans {

def showWarning() {
System.err.println(
s"""WARN: This is a naive implementation of KMeans Clustering and is given as an example!
"""WARN: This is a naive implementation of KMeans Clustering and is given as an example!
|Please use org.apache.spark.ml.clustering.KMeans
|for more conventional use.
""".stripMargin)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ object LocalLR {

def showWarning() {
System.err.println(
s"""WARN: This is a naive implementation of Logistic Regression and is given as an example!
"""WARN: This is a naive implementation of Logistic Regression and is given as an example!
|Please use org.apache.spark.ml.classification.LogisticRegression
|for more conventional use.
""".stripMargin)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import org.apache.spark.{SparkConf, SparkContext}
*/
object LogQuery {
val exampleApacheLogs = List(
s"""10.10.10.10 - "FRED" [18/Jan/2013:17:56:07 +1100] "GET http://images.com/2013/Generic.jpg
"""10.10.10.10 - "FRED" [18/Jan/2013:17:56:07 +1100] "GET http://images.com/2013/Generic.jpg
| HTTP/1.1" 304 315 "http://referall.com/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
| GTB7.4; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR
| 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ object SparkHdfsLR {

def showWarning() {
System.err.println(
s"""WARN: This is a naive implementation of Logistic Regression and is given as an example!
"""WARN: This is a naive implementation of Logistic Regression and is given as an example!
|Please use org.apache.spark.ml.classification.LogisticRegression
|for more conventional use.
""".stripMargin)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ object SparkKMeans {

def showWarning() {
System.err.println(
s"""WARN: This is a naive implementation of KMeans Clustering and is given as an example!
"""WARN: This is a naive implementation of KMeans Clustering and is given as an example!
|Please use org.apache.spark.ml.clustering.KMeans
|for more conventional use.
""".stripMargin)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ object SparkLR {

def showWarning() {
System.err.println(
s"""WARN: This is a naive implementation of Logistic Regression and is given as an example!
"""WARN: This is a naive implementation of Logistic Regression and is given as an example!
|Please use org.apache.spark.ml.classification.LogisticRegression
|for more conventional use.
""".stripMargin)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ object SparkPageRank {

def showWarning() {
System.err.println(
s"""WARN: This is a naive implementation of PageRank and is given as an example!
"""WARN: This is a naive implementation of PageRank and is given as an example!
|Please use the PageRank implementation found in org.apache.spark.graphx.lib.PageRank
|for more conventional use.
""".stripMargin)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ object Analytics extends Logging {

def main(args: Array[String]): Unit = {
if (args.length < 2) {
val usage = s"""
Usage: Analytics <taskType> <file> --numEPart=<num_edge_partitions> [other options]
Supported 'taskType' as follows:
pagerank Compute PageRank
cc Compute the connected components of vertices
triangles Count the number of triangles"""
val usage = """
|Usage: Analytics <taskType> <file> --numEPart=<num_edge_partitions> [other options]
|Supported 'taskType' as follows:
|pagerank Compute PageRank
|cc Compute the connected components of vertices
|triangles Count the number of triangles""".stripMargin

System.err.println(usage)
System.exit(1)
Expand Down