草庐IT

NoClassDef

全部标签

java - Hadoop NoClassDef hadoop/crypto/key/KeyProvider

我打算通过Java从HDFS获取文件publicstaticvoidmain(String[]args)throwsIOException,URISyntaxException{//1.GettheinstanceofConfigurationConfigurationconfiguration=newConfiguration();Fileworkaround=newFile(".");System.getProperties().put("hadoop.home.dir",workaround.getAbsolutePath());newFile("./bin").mkdirs()