У меня есть тест Scala, который работает в Intellij, но не работает в терминале с использованием командной строки. Код + Ошибки:
[error] ... object Configuration is not a member of package org.apache.hadoop.conf
[error] ... object FileSystem is not a member of package org.apache.hadoop.fs
[error] import org.apache.hadoop.fs.{FileSystem, FileUtil, Path}
[error] ^
[error] ... Class org.apache.hadoop.ha.ServiceFailedException not found - continuing with a stub.
[error] val hdfsCluster = new MiniDFSCluster.Builder(conf).build()
[error] ^
[error] ... not found: type Configuration
[error] val conf = new Configuration()
[error] ^
[error] ... not found: value FileUtil
[error] FileUtil.fullyDelete(baseDir)
[error] ^
[error] ... not found: value FileSystem
[error] val hdfs = FileSystem.get(conf);
[error] ^
[error] ... not found: value FileUtil
[error] FileUtil.fullyDelete(baseDir);
[error] ^
[error] ... not found: type Configuration
[error] val conf = new Configuration();
[error] ^
[error] ... not found: value FileUtil
Sbt зависимости:
"org.apache.hadoop" % "hadoop-hdfs" % "2.6.5" % Test classifier "tests",
"org.apache.hadoop" % "hadoop-common" % "2.6.5" % Test classifier "tests"