Skip to content

Commit

Permalink
Minor fixes (spelling, http->https, links etc)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelmay committed May 24, 2021
1 parent e1942a0 commit c2bf334
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ by providing [HDFS fsimage](https://hadoop.apache.org/docs/stable/hadoop-project
* [tooling](tool) support for summary overview of the HDFS data files and directories of users and groups
(answering 'who has how many/big/small files...')
* a [library](lib) for fast and partly multithreaded fsimage processing API file-, directory- and symlink aware visitor,
derived from [Apache HDFS FSImageLoder](https://github.com/apache/hadoop/blob/master/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/FSImageLoader.java) )
derived from [Apache HDFS FSImageLoader](https://github.com/apache/hadoop/blob/master/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/FSImageLoader.java)

## Example usage for library

See [FSImageLoaderTest.java](lib/src/test/java/de/m3y/hadoop/hdfs/hfsa/core/FSImageLoaderTest.java) for example usage.
See [FSImageLoaderTest.java](lib/src/test/java/de/m3y/hadoop/hdfs/hfsa/core/FsImageLoaderTest.java) for example usage.

The following lines visit all directory-, file- and symlink inodes:
```java
Expand Down Expand Up @@ -86,7 +86,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static void main(String[] args) throws IOException {
final int maxDirWidth = Math.min(2, ABC.length());
/* "a...z".length * factor = number of files per directory generated */
final int filesPerDirectoryFactor = 10;
final boolean enableDefaultCompression = Boolean.valueOf(System.getProperty(
final boolean enableDefaultCompression = Boolean.parseBoolean(System.getProperty(
DFSConfigKeys.DFS_IMAGE_COMPRESS_KEY, Boolean.toString(DFSConfigKeys.DFS_IMAGE_COMPRESS_DEFAULT)));

/*
Expand Down
2 changes: 1 addition & 1 deletion lib/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Hadoop FSImage Analyzer (HFSA)

The HFSA lib supports fast and partly multithreaded fsimage processing API file-, directory- and symlink aware visitor,
derived from [Apache HDFS FSImageLoder](https://github.com/apache/hadoop/blob/master/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/FSImageLoader.java) )
derived from [Apache HDFS FSImageLoader](https://github.com/apache/hadoop/blob/master/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/FSImageLoader.java)

### Example Usage
Use `parallel()` for multi-threaded execution when loading or visiting INode hierarchy:
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<licenses>
<license>
<name>Apache 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
</license>
</licenses>

Expand Down Expand Up @@ -243,8 +243,8 @@
<configuration>
<links>
<link>https://docs.oracle.com/javase/8/docs/api/</link>
<link>http://hadoop.apache.org/docs/r3.2.1/api/</link>
<link>https://google.github.io/guava/releases/28.1-jre/api/docs/</link>
<link>https://hadoop.apache.org/docs/r3.3.0/api/</link>
<link>https://google.github.io/guava/releases/30.1.1-jre/api/docs/</link>
</links>
</configuration>
</plugin>
Expand Down
2 changes: 1 addition & 1 deletion tool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ mm | 3 | /
```
#### Show INode details

Show details of selected INode, eg by directory path or file path or inode ID:
Show details of selected INode, e.g. by directory path or file path or inode ID:
```
> hfsa-tool src/test/resources/fsi_small.img inode "/test3" "/test3/test_160MiB.img"
type: DIRECTORY
Expand Down

0 comments on commit c2bf334

Please sign in to comment.