Skip to content

Conversation

@frwrdt
Copy link
Contributor

@frwrdt frwrdt commented Apr 1, 2020

fix bug in issue #3234

}
} else {
throw new BrokerException(TBrokerOperationStatusCode.INVALID_ARGUMENT,
"invalid authentication.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to determine whether the authentication method exists

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The authentication has been checked before, so this is redundant here.


conf.set(FS_HDFS_IMPL_DISABLE_CACHE, "true");
FileSystem dfsFileSystem = FileSystem.get(pathUri.getUri(), conf);
FileSystem dfsFileSystem = null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this method compatible with versions of hdfs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version 2.7.3 of package hadoop-common including this method is the same as package hadoop-hdfs.

@HangyuanLiu
Copy link
Contributor

HangyuanLiu commented Apr 1, 2020

Please change to an understandable title

@HangyuanLiu HangyuanLiu added the kind/fix Categorizes issue or PR as related to a bug. label Apr 1, 2020
@frwrdt frwrdt changed the title Broker load username fix the bug that username in broker load is invalid Apr 1, 2020
@frwrdt frwrdt changed the title fix the bug that username in broker load is invalid fix the bug that 'username' in broker load is invalid Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/fix Categorizes issue or PR as related to a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants