JavaEar 专注于收集分享传播有价值的技术资料

Error:scalac: bad symbolic reference. A signature in RDD.class refers to term hadoop in package org.apache which is not available

Error:scalac: bad symbolic reference. A signature in RDD.class refers to term hadoop in package org.apache which is not available. It may be completely missing from the current classpath, or the version on the classpath might be incompatible with the version used when compiling RDD.class.

Error:scalac: missing or invalid dependency detected while loading class file 'RDD.class'. Could not access term io in value org.apache.hadoop, because it (or its dependencies) are missing. Check your build definition for missing or conflicting dependencies. (Re-run with -Ylog-classpath to see the problematic classpath.) A full rebuild may help if 'RDD.class' was compiled against an incompatible version of org.apache.hadoop.

Error:scalac: missing or invalid dependency detected while loading class file 'PairRDDFunctions.class'. Could not access term io in value org.apache.hadoop, because it (or its dependencies) are missing. Check your build definition for missing or conflicting dependencies. (Re-run with -Ylog-classpath to see the problematic classpath.) A full rebuild may help if 'PairRDDFunctions.class' was compiled against an incompatible version of org.apache.hadoop.

1个回答

    最佳答案
  1. I have already solved now , add hadoop jars can solve