Skip to content

Commit

Permalink
fix linting mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
ycryptx committed Nov 27, 2023
1 parent 2f084c8 commit 516e240
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions sequencer/src/map-reduce/uploader/uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,28 +353,26 @@ export class Uploader<RollupProof extends RollupProofBase> {
process.env.REDUCER_FILE_PATH,
);

runShellCommand(`docker exec ${container} hdfs dfs - mkdir / user`);
runShellCommand(`docker exec ${container} hdfs dfs -mkdir /user`);
runShellCommand(`docker exec ${container} hdfs dfs -mkdir /user/hduser`);
runShellCommand(`docker exec ${container} hdfs dfs -mkdir input`);
runShellCommand(
`docker exec ${container} hdfs dfs - mkdir / user / hduser`,
`docker cp ${filePath} ${container}:/home/hduser/hadoop-3.3.3/etc/hadoop/`,
);
runShellCommand(`docker exec ${container} hdfs dfs - mkdir input`);
runShellCommand(
`docker cp ${filePath} ${container}: /home/hduser / hadoop - 3.3.3 / etc / hadoop / `,
`docker exec ${container} hdfs dfs -put /home/hduser/hadoop-3.3.3/etc/hadoop/${fileName} input`,
);
runShellCommand(
`docker exec ${container} hdfs dfs - put / home / hduser / hadoop - 3.3.3 / etc / hadoop / ${fileName} input`,
`docker cp ${mapperFilePath} ${container}:/home/hduser/hadoop-3.3.3/etc/hadoop/`,
);
runShellCommand(
`docker cp ${mapperFilePath} ${container}: /home/hduser / hadoop - 3.3.3 / etc / hadoop / `,
);
runShellCommand(
`docker cp ${reducerFilePath} ${container}: /home/hduser / hadoop - 3.3.3 / etc / hadoop / `,
`docker cp ${reducerFilePath} ${container}:/home/hduser/hadoop-3.3.3/etc/hadoop/`,
);

runShellCommand(
`docker exec ${container} sudo chmod a + x / home / hduser / hadoop - 3.3.3 / etc / hadoop / mapper.js / home / hduser / hadoop - 3.3.3 / etc / hadoop / reducer.js`,
`docker exec ${container} sudo chmod a+x /home/hduser/hadoop-3.3.3/etc/hadoop/mapper.js /home/hduser/hadoop-3.3.3/etc/hadoop/reducer.js`,
);

return `/ user / hduser / input / ${fileName} `;
return `/user/hduser/input/${fileName}`;
}
}

0 comments on commit 516e240

Please sign in to comment.