Repository: kudu Updated Branches: refs/heads/master 60020cf32 -> 9ad90eebe
[hms] use IPv4 for mini HMS This patch explictly uses IPv4 protocol in the JVM environment options that are passed to the mini HMS, to avoid IPv6 being accidentally used, because IPv6 is not supported in Hadoop yet (https://wiki.apache.org/hadoop/HadoopIPv6). Change-Id: I0ceeccb45f3cdd13ccdc5ed77e0675ae5442f808 Reviewed-on: http://gerrit.cloudera.org:8080/11276 Reviewed-by: Adar Dembo <[email protected]> Tested-by: Kudu Jenkins Reviewed-by: Dan Burkert <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/kudu/repo Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/43414452 Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/43414452 Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/43414452 Branch: refs/heads/master Commit: 434144527bd68367f54f3a10e08b9500962dcd42 Parents: 60020cf Author: Hao Hao <[email protected]> Authored: Mon Aug 20 12:21:31 2018 -0700 Committer: Hao Hao <[email protected]> Committed: Tue Aug 21 21:53:38 2018 +0000 ---------------------------------------------------------------------- src/kudu/hms/mini_hms.cc | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kudu/blob/43414452/src/kudu/hms/mini_hms.cc ---------------------------------------------------------------------- diff --git a/src/kudu/hms/mini_hms.cc b/src/kudu/hms/mini_hms.cc index 2ce2ea9..5472580 100644 --- a/src/kudu/hms/mini_hms.cc +++ b/src/kudu/hms/mini_hms.cc @@ -120,6 +120,8 @@ Status MiniHms::Start() { // List of JVM environment options to pass to the HMS. string java_options = + // Ensure IPv4 is used. + "-Djava.net.preferIPv4Stack=true " // Make logging less verbose. "-Dhive.log.level=WARN " // Log to the console.
