8000 HDFS-11115 Remove bytes2String and string2Bytes by SahilKang · Pull Request #152 · apache/hadoop · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

HDFS-11115 Remove bytes2String and string2Bytes #152

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

Open
wants to merge 6 commits into
base: trunk
Choose a base branch
from

Conversation

SahilKang
Copy link

Since StandardCharsets makes converting between (utf-8) bytes and strings
trivial, let's remove the methods:
- org.apache.hadoop.hdfs.DFSUtilClient.bytes2String
- org.apache.hadoop.hdfs.DFSUtilClient.string2Bytes

Use String.getBytes(StandardCharsets.UTF_8) instead of String.getBytes(String).
Uppercased `newline' since it's a constant, and
made line lengths no more than 80 chars.
Since StandardCharsets makes converting between (utf-8) bytes and strings
trivial, let's remove the methods:
    - org.apache.hadoop.hdfs.DFSUtilClient.bytes2String
    - org.apache.hadoop.hdfs.DFSUtilClient.string2Bytes
shanthoosh pushed a commit to shanthoosh/hadoop that referenced this pull request Oct 15, 2019
1. The ClientHelper now checks inactive application IDs so it can get status for terminated jobs in addition to running jobs
2. JobRunner.kill() waits for any finish, not just successful finish.
3. A killed job is now considered successful.

Author: Jacob Maes <jmaes@linkedin.com>

Reviewers: Prateek Maheshwari <pmaheshw@linkedin.com>

Closes apache#152 from jmakes/samza-1250
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0