丁云鹏 il y a 4 mois
Parent
commit
1fab135d3c

+ 1 - 1
recommend-model-produce/src/main/java/com/tzld/piaoquan/recommend/model/produce/service/HDFSService.java

@@ -49,7 +49,7 @@ public class HDFSService implements Serializable {
     public boolean copyToLocalFile(String hdfs, String local) throws IOException {
         Path localP = new Path(local);
         Path hdfsP = new Path(hdfs);
-        fSystem.copyToLocalFile(hdfs, local);
+        fSystem.copyToLocalFile(hdfsP, localP);
         return false;
     }
 }