Skip to content

Commit 546bb67

Browse files
committed
Merge branch 'master' of github.com:RADAR-CNS/Restructure-HDFS-topic
2 parents 1f140f0 + 7c94d18 commit 546bb67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ Build jar from source with
66
```
77
and find the output JAR file as `build/libs/restructurehdfs-all-0.1-SNAPSHOT.jar`. Then run with:
88
```
9-
hadoop jar restructurehdfs-all-0.1.0.jar <webhdfs_url> <hdfs_topic_path> <output_folder>
9+
hadoop jar restructurehdfs-all-0.1-SNAPSHOT.jar <webhdfs_url> <hdfs_topic_path> <output_folder>
1010
```

src/main/java/org/radarcns/util/FileCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public boolean appendLine(File file, String data) throws IOException {
4848
ensureCapacity();
4949

5050
File dir = file.getParentFile();
51-
if (!file.getParentFile().exists()){
51+
if (!dir.exists()){
5252
if (dir.mkdirs()) {
5353
logger.debug("Created directory: {}", dir.getAbsolutePath());
5454
} else {

0 commit comments

Comments
 (0)