2016-05-11 6 views
0

私のクラスタでSparkとHiveを接続するいくつかのSQLコマンドを実行していましたが、このエラーの半分が発生しました。どのようにこれを解決するための任意のアイデア?OutOfMemory Spark Scalaシェルで実行中の例外

java.lang.OutOfMemoryError: PermGen space 
Stopping spark context. 
Exception in thread "main" 
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main" 

答えて

0

あなたは-XXを追加する必要があります:MaxPermSizeを= 1024メートル-XX:以下のようなspark.driver.extraJavaOptionsでPermSizeを= 256メートル

./bin/spark-shell --master spark://servername:7077 --driver-class-path 
    $CLASSPATH --conf "spark.driver.extraJavaOptions=-XX:MaxPermSize=1024m -XX:PermSize=256m" 
関連する問題