Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMBARI-24833. Create cloud input/output skeleton. #17

Merged
merged 3 commits into from Nov 1, 2018

Conversation

oleewere
Copy link
Contributor

@oleewere oleewere commented Oct 31, 2018

What changes were proposed in this pull request?

  • Introduce cloud storage mode for Log Feeder
  • 2 parallel way of Log Feeder usage: default or cloud mode (or both)
    both mode can work independently from each other (see the Conditional beans in ApplicationConfig)
  • new cloud storage mode use the local implementation of config api, so it won't manage any zookeeper operations, won't depend on solr or zookeeper
  • refactor: move out ConfigHandler class to different classes (operations of the class will be based on the cloud storage mode), and rename as InputConfigManager
  • update spring versions to the newest ones
  • update easymock version -> re-enable ignored tests (because of jdk 11 support)

How was this patch tested?

with docker env by changing the default cloud mode

@oleewere oleewere added the enhancement New feature or request label Oct 31, 2018
@oleewere oleewere self-assigned this Oct 31, 2018
@asfgit
Copy link

asfgit commented Oct 31, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-LogSearch-Github-PR-Builder/24/
Test PASSed.

@asfgit
Copy link

asfgit commented Oct 31, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-LogSearch-Github-PR-Builder/25/
Test PASSed.

@asfgit
Copy link

asfgit commented Oct 31, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-LogSearch-Github-PR-Builder/27/
Test PASSed.

FileUtils.writeStringToFile(pwdFile, defaultSecret, Charset.defaultCharset());
return defaultSecret.toCharArray();
} else {
return FileUtils.readFileToString(pwdFile, Charset.defaultCharset()).toCharArray();
Copy link
Contributor

Choose a reason for hiding this comment

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

File content can be read directly to byte or char array That would be more secure than readFileToString. Also defaultSecret can be a char[]

@oleewere oleewere merged commit 9bce50d into apache:master Nov 1, 2018
oleewere added a commit that referenced this pull request Nov 19, 2018
* AMBARI-24833. Create cloud input/output skeleton.

* AMBARI-24833. Use LogFeederMode as enum by spring

* AMBARI-24833. Fix review issues + add secret stores.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants