第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

hadoop沒有用于方案的文件系統(tǒng):file

hadoop沒有用于方案的文件系統(tǒng):file

翻閱古今 2019-11-11 10:29:35
我正在嘗試NaiveBayesClassifer使用hadoop 運(yùn)行一個(gè)簡單的程序,出現(xiàn)此錯(cuò)誤Exception in thread "main" java.io.IOException: No FileSystem for scheme: file    at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1375)    at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:66)    at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1390)    at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:196)    at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:95)    at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:180)    at org.apache.hadoop.fs.Path.getFileSystem(Path.java:175)    at org.apache.mahout.classifier.naivebayes.NaiveBayesModel.materialize(NaiveBayesModel.java:100)代碼:    Configuration configuration = new Configuration();    NaiveBayesModel model = NaiveBayesModel.materialize(new Path(modelPath), configuration);// error in this line..modelPath指向NaiveBayes.bin文件,并且配置對(duì)象正在打印-Configuration: core-default.xml, core-site.xml我認(rèn)為是因?yàn)楣拮樱惺裁聪敕▎幔?
查看完整描述

3 回答

?
白衣染霜花

TA貢獻(xiàn)1796條經(jīng)驗(yàn) 獲得超10個(gè)贊

對(duì)于使用shade插件的用戶,按照david_p的建議,您可以通過將ServicesResourceTransformer添加到插件配置中來合并陰影jar中的服務(wù):


  <plugin>

    <groupId>org.apache.maven.plugins</groupId>

    <artifactId>maven-shade-plugin</artifactId>

    <version>2.3</version>

    <executions>

      <execution>

        <phase>package</phase>

        <goals>

          <goal>shade</goal>

        </goals>

        <configuration>

          <transformers>

            <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>

          </transformers>

        </configuration>

      </execution>

    </executions>

  </plugin>

這會(huì)將所有org.apache.hadoop.fs.FileSystem服務(wù)合并到一個(gè)文件中


查看完整回答
反對(duì) 回復(fù) 2019-11-11
  • 3 回答
  • 0 關(guān)注
  • 639 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)