CVE-2018-8029: Apache Hadoop Privilege escalation vulnerability

2019-05-29 Thread Akira Ajisaka
CVE-2018-8029: Apache Hadoop Privilege escalation vulnerability

Severity: Critical

Vendor: The Apache Software Foundation

Versions Affected:
3.0.0-alpha1 to 3.1.0, 2.9.0 to 2.9.1, 2.2.0 to 2.8.4

Description:
A user who can escalate to yarn user can possibly run arbitrary
commands as root user.

Mitigation:
Users should upgrade to Apache Hadoop 2.8.5, 2.9.2, 3.1.1 or upper.
If you are using the affected version of Apache Hadoop and there are
any users who can escalate to yarn user and cannot escalate to root user,
remove the permission to escalate to yarn user from them.

Credit:
This issue was discovered by Miklos Szegedi.

-
To unsubscribe, e-mail: user-unsubscr...@hadoop.apache.org
For additional commands, e-mail: user-h...@hadoop.apache.org



When workers >= 2 and ps == 0 worker should throw exception

2019-05-29 Thread kevin su
Hi all,

I found that when workers >= 2 and ps == 0 worker just return false .

private boolean determineIfDistributed(int nWorkers, int nPS)
  throws ParseException {
// Check #workers and #ps.
// When distributed training is required
if (nWorkers >= 2 && nPS > 0) {
  return true;
} else if (nWorkers <= 1 && nPS > 0) {
  throw new ParseException("Only specified one worker but non-zero PS, "
  + "please double check.");
}
return false;
  }


should throw a exception ?


Kevin,
Best   Regards