Skip to content

Commit 669dd23

Browse files
committed
Review comments
1 parent 2727e70 commit 669dd23

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graphx/src/main/scala/org/apache/spark/graphx/lib/Analytics.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ import org.apache.spark.graphx.PartitionStrategy._
2727
object Analytics extends Logging {
2828

2929
def main(args: Array[String]): Unit = {
30+
if (args.length < 2) {
31+
System.err.println("Usage: Analytics <taskType> <file> [other options]")
32+
System.exit(1)
33+
}
34+
3035
val taskType = args(0)
3136
val fname = args(1)
3237
val options = args.drop(2).map { arg =>

0 commit comments

Comments
 (0)