Skip to content

Commit b59b518

Browse files
author
anouri
committed
application configuration description improved.
1 parent 317a605 commit b59b518

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

com.ibm.streamsx.hdfs/impl/java/src/com/ibm/streamsx/hdfs/IHdfsConstants.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public class IHdfsConstants {
156156

157157
public static final String DESC_BLOCK_SIZE = "This parameter specifies the maximum number of bytes to be read at one time when reading a file into binary mode (ie, into a blob); thus, it is the maximum size of the blobs on the output stream. The parameter is optional, and defaults to `4096` .";
158158

159-
public static final String DESC_CREDENTIALS ="This optional parameter specifies the JSON string that contains the hdfs credentials: `user`, `password` and `hdfsUri` or `webhdfs` . \\n\\n"
159+
public static final String DESC_CREDENTIALS ="This optional parameter specifies the JSON string that contains the hdfs credentials key/value pairs for `user`, `password` and `webhdfs` . \\n\\n"
160160
+ "This parameter can also be specified in an application configuration.\\n\\n"
161161
+ "The JSON string must to have the following format:\\n\\n"
162162
+ " {\\n"
@@ -166,9 +166,10 @@ public class IHdfsConstants {
166166
+ " }\\n";
167167

168168

169-
public static final String DESC_APP_CONFIG_NAME ="This optional parameter specifies the name of the application configuration that contains HDFS connection related configuration parameter 'credentials'. "
170-
+ " The `credentials` is a JSON string that contains `user` and `password` and `webhdfs` . "
171-
+ " If a value is specified in the application configuration and as operator parameter, the application configuration parameter value takes precedence. ";
169+
public static final String DESC_APP_CONFIG_NAME ="This optional parameter specifies the name of the application configuration that contains HDFS connection related configuration parameter `credentials`. "
170+
+ " The `credentials` is a JSON string that contains key/value pairs for `user` and `password` and `webhdfs` . "
171+
+ " If a value is specified in the application configuration and as operator parameter, the application configuration parameter value takes precedence. "
172+
+ " An application configuration can be created in the Streams Console or using the `streamtool mkappconfig ... <configObject name>`.";
172173

173174
public static final String DESC_SOURCE_FILE = "This parameter specifies the name of the file that the operator opens and reads. \\n"
174175
+ "This parameter must be specified when the optional input port is not configured. \\n"

com.ibm.streamsx.hdfs/info.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,11 @@ The 'tempFile' parameter specifies the name of the file that the operator writes
168168
* `copyToLocalFile` : Copies a file from HDFS file system to the local disk.
169169

170170
* It supports also two new parameters for all operators:
171-
* `credentials` : A JSON string that contains `user`, `password`, `webhdfs`.
172-
* `appConfigName` : Streams application configuration that defines `user`, `password`, and `webhdfs`.
171+
* `credentials` : credentials is a JSON string that contains key/value pairs for `user` and `password` and `webhdfs` .
172+
* `appConfigName` : Streams application configuration that support `credentials`. And `credentials` is a JSON string that contains `user` and `password` and `webhdfs`.
173173

174174
* Adapting of streamsx.hdfs to support HDP 2.x and HDP 3.x file systems.
175+
* Adapting of com.ibm.streamsx.hdfs.client.webhdfs java package to support `knox` HttpURLConnection.
175176
* The pom.xml file has been upgraded to use Hadoop version 3.1.0 libraries.
176177

177178

0 commit comments

Comments
 (0)