|
@@ -47,6 +47,7 @@ import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.apache.hadoop.conf.Configuration;
|
|
|
import org.apache.hadoop.fs.FileSystem;
|
|
|
+import org.apache.hadoop.util.VersionInfo;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
@@ -93,6 +94,9 @@ public class AliyunOSSFileSystemStore {
|
|
|
ESTABLISH_TIMEOUT_DEFAULT));
|
|
|
clientConf.setSocketTimeout(conf.getInt(SOCKET_TIMEOUT_KEY,
|
|
|
SOCKET_TIMEOUT_DEFAULT));
|
|
|
+ clientConf.setUserAgent(
|
|
|
+ conf.get(USER_AGENT_PREFIX, USER_AGENT_PREFIX_DEFAULT) + ", Hadoop/"
|
|
|
+ + VersionInfo.getVersion());
|
|
|
|
|
|
String proxyHost = conf.getTrimmed(PROXY_HOST_KEY, "");
|
|
|
int proxyPort = conf.getInt(PROXY_PORT_KEY, -1);
|