[jira] [Comment Edited] (HADOOP-12431) NameNode should bind on both IPv6 and IPv4 if running on dual-stack machine and IPv6 enabled

2021-05-04 Thread ANANDA G B (Jira)


[ 
https://issues.apache.org/jira/browse/HADOOP-12431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17327260#comment-17327260
 ] 

ANANDA G B edited comment on HADOOP-12431 at 5/4/21, 10:46 AM:
---

[~arp] / [~eclark] We are also working on NameNode to bind on both IPv6 and 
IPv4 if running on dual-stack machine and IPv6 enabled. If you have updated any 
document it will be helpful, can you please share? If you have done any further 
analysis can you please share.


was (Author: gb.ana...@gmail.com):
[~eclark] We are also working on NameNode to bind on both IPv6 and IPv4 if 
running on dual-stack machine and IPv6 enabled. If you have updated any 
document it will be helpful, can you please share? If you have done any further 
analysis can you please share.

> NameNode should bind on both IPv6 and IPv4 if running on dual-stack machine 
> and IPv6 enabled
> 
>
> Key: HADOOP-12431
> URL: https://issues.apache.org/jira/browse/HADOOP-12431
> Project: Hadoop Common
>  Issue Type: Sub-task
>Affects Versions: 2.7.1
>Reporter: Nate Edel
>Priority: Major
>  Labels: ipv6
>
> NameNode works properly on IPv4 or IPv6 single stack (assuming in the latter 
> case that scripts have been changed to disable preferIPv4Stack, and dependent 
> on the client/data node fix in HDFS-8078).  On dual-stack machines, NameNode 
> listens only on IPv4 (even ignoring preferIPv6Addresses being set.)
> Our initial use case for IPv6 is IPv6-only clusters, but ideally we'd support 
> binding to both the IPv4 and IPv6 machine addresses so that we can support 
> heterogenous clusters (some dual-stack and some IPv6-only machines.)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (HADOOP-17656) Upgrade JUnit to 4.13.1

2021-04-23 Thread ANANDA G B (Jira)


 [ 
https://issues.apache.org/jira/browse/HADOOP-17656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ANANDA G B updated HADOOP-17656:

External issue URL: https://issues.apache.org/jira/browse/HADOOP-17602
Labels: TimeLine  (was: )

> Upgrade JUnit to 4.13.1
> ---
>
> Key: HADOOP-17656
> URL: https://issues.apache.org/jira/browse/HADOOP-17656
> Project: Hadoop Common
>  Issue Type: Improvement
>  Components: build, security, test
>Affects Versions: 3.1.1
>Reporter: ANANDA G B
>Priority: Major
>  Labels: TimeLine
> Fix For: 3.1.1, 3.3.1
>
>
> Yarn Timeline Server still using 4.11 Junit version, need to upgrade it to 
> 4.13.1



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (HADOOP-17656) Upgrade JUnit to 4.13.1

2021-04-23 Thread ANANDA G B (Jira)


 [ 
https://issues.apache.org/jira/browse/HADOOP-17656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ANANDA G B updated HADOOP-17656:

Summary: Upgrade JUnit to 4.13.1  (was: Upgrade JUnit to 1.13.1)

> Upgrade JUnit to 4.13.1
> ---
>
> Key: HADOOP-17656
> URL: https://issues.apache.org/jira/browse/HADOOP-17656
> Project: Hadoop Common
>  Issue Type: Improvement
>  Components: build, security, test
>Affects Versions: 3.1.1
>Reporter: ANANDA G B
>Priority: Major
> Fix For: 3.1.1, 3.3.1
>
>
> Yarn Timeline Server still using 4.11 Junit version, need to upgrade it to 
> 4.13.1



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Created] (HADOOP-17656) Upgrade JUnit to 1.13.1

2021-04-23 Thread ANANDA G B (Jira)
ANANDA G B created HADOOP-17656:
---

 Summary: Upgrade JUnit to 1.13.1
 Key: HADOOP-17656
 URL: https://issues.apache.org/jira/browse/HADOOP-17656
 Project: Hadoop Common
  Issue Type: Improvement
  Components: build, security, test
Affects Versions: 3.1.1
Reporter: ANANDA G B
 Fix For: 3.3.1, 3.1.1


Yarn Timeline Server still using 4.11 Junit version, need to upgrade it to 
4.13.1



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Commented] (HADOOP-12431) NameNode should bind on both IPv6 and IPv4 if running on dual-stack machine and IPv6 enabled

2021-04-22 Thread ANANDA G B (Jira)


[ 
https://issues.apache.org/jira/browse/HADOOP-12431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17327260#comment-17327260
 ] 

ANANDA G B commented on HADOOP-12431:
-

[~eclark] We are also working on NameNode to bind on both IPv6 and IPv4 if 
running on dual-stack machine and IPv6 enabled. If you have updated any 
document it will be helpful, can you please share? If you have done any further 
analysis can you please share.

> NameNode should bind on both IPv6 and IPv4 if running on dual-stack machine 
> and IPv6 enabled
> 
>
> Key: HADOOP-12431
> URL: https://issues.apache.org/jira/browse/HADOOP-12431
> Project: Hadoop Common
>  Issue Type: Sub-task
>Affects Versions: 2.7.1
>Reporter: Nate Edel
>Priority: Major
>  Labels: ipv6
>
> NameNode works properly on IPv4 or IPv6 single stack (assuming in the latter 
> case that scripts have been changed to disable preferIPv4Stack, and dependent 
> on the client/data node fix in HDFS-8078).  On dual-stack machines, NameNode 
> listens only on IPv4 (even ignoring preferIPv6Addresses being set.)
> Our initial use case for IPv6 is IPv6-only clusters, but ideally we'd support 
> binding to both the IPv4 and IPv6 machine addresses so that we can support 
> heterogenous clusters (some dual-stack and some IPv6-only machines.)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Commented] (HADOOP-16145) Add Quota Preservation to DistCp

2021-04-01 Thread ANANDA G B (Jira)


[ 
https://issues.apache.org/jira/browse/HADOOP-16145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17313543#comment-17313543
 ] 

ANANDA G B commented on HADOOP-16145:
-

[~RANith] Thanks for working on it. CopyListingFileStatus.readFields() method 
can throw EOFException on version upgrade. So can handle it as part of this fix.

> Add Quota Preservation to DistCp
> 
>
> Key: HADOOP-16145
> URL: https://issues.apache.org/jira/browse/HADOOP-16145
> Project: Hadoop Common
>  Issue Type: Improvement
>  Components: tools/distcp
>Reporter: Ranith Sardar
>Assignee: Ranith Sardar
>Priority: Major
> Attachments: HADOOP-16145.000.patch
>
>
> This JIRA to track the distcp support to handle the quota with preserving 
> options.
> Add new command line argument to support that.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (HADOOP-17542) IPV6 support in Netutils#createSocketAddress

2021-03-02 Thread ANANDA G B (Jira)


 [ 
https://issues.apache.org/jira/browse/HADOOP-17542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ANANDA G B updated HADOOP-17542:

Attachment: Test Scenarios Verified in IPV6 cluster.doc

> IPV6 support in Netutils#createSocketAddress 
> -
>
> Key: HADOOP-17542
> URL: https://issues.apache.org/jira/browse/HADOOP-17542
> Project: Hadoop Common
>  Issue Type: Sub-task
>Affects Versions: 3.1.1
>Reporter: ANANDA G B
>Priority: Minor
>  Labels: ipv6
> Attachments: HADOOP-17542-HADOOP-11890-001.patch, Test Scenarios 
> Verified in IPV6 cluster.doc
>
>
> Currently NetUtils#createSocketAddress not supporting if target is IPV6 ip. 
> If target is IPV6 ip then it throw "Does not contain a valid host:port 
> authority: ".
> This need be support.
> public static InetSocketAddress createSocketAddr(String target,
>  int defaultPort,
>  String configName,
>  boolean useCacheIfPresent) {
>  String helpText = "";
>  if (configName != null)
> { helpText = " (configuration property '" + configName + "')"; }
> if (target == null)
> { throw new IllegalArgumentException("Target address cannot be null." + 
> helpText); }
> target = target.trim();
>  boolean hasScheme = target.contains("://");
>  URI uri = createURI(target, hasScheme, helpText, useCacheIfPresent);
> String host = uri.getHost();
>  int port = uri.getPort();
>  if (port == -1)
> { port = defaultPort; }
> String path = uri.getPath();
> if ((host == null) || (port < 0) ||
>  (!hasScheme && path != null && !path.isEmpty()))
> { throw new IllegalArgumentException( *"Does not contain a valid host:port 
> authority: " + target + helpText* ); }
> return createSocketAddrForHost(host, port);
>  }



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Comment Edited] (HADOOP-17542) IPV6 support in Netutils#createSocketAddress

2021-02-25 Thread ANANDA G B (Jira)


[ 
https://issues.apache.org/jira/browse/HADOOP-17542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17290905#comment-17290905
 ] 

ANANDA G B edited comment on HADOOP-17542 at 2/25/21, 1:13 PM:
---

[~hemanthboyina] Can you please review the patch attached


was (Author: gb.ana...@gmail.com):
[~hemanthboyina] Can you please review

> IPV6 support in Netutils#createSocketAddress 
> -
>
> Key: HADOOP-17542
> URL: https://issues.apache.org/jira/browse/HADOOP-17542
> Project: Hadoop Common
>  Issue Type: Sub-task
>Affects Versions: 3.1.1
>Reporter: ANANDA G B
>Priority: Minor
>  Labels: ipv6
> Attachments: HADOOP-17542-HADOOP-11890-001.patch
>
>
> Currently NetUtils#createSocketAddress not supporting if target is IPV6 ip. 
> If target is IPV6 ip then it throw "Does not contain a valid host:port 
> authority: ".
> This need be support.
> public static InetSocketAddress createSocketAddr(String target,
>  int defaultPort,
>  String configName,
>  boolean useCacheIfPresent) {
>  String helpText = "";
>  if (configName != null)
> { helpText = " (configuration property '" + configName + "')"; }
> if (target == null)
> { throw new IllegalArgumentException("Target address cannot be null." + 
> helpText); }
> target = target.trim();
>  boolean hasScheme = target.contains("://");
>  URI uri = createURI(target, hasScheme, helpText, useCacheIfPresent);
> String host = uri.getHost();
>  int port = uri.getPort();
>  if (port == -1)
> { port = defaultPort; }
> String path = uri.getPath();
> if ((host == null) || (port < 0) ||
>  (!hasScheme && path != null && !path.isEmpty()))
> { throw new IllegalArgumentException( *"Does not contain a valid host:port 
> authority: " + target + helpText* ); }
> return createSocketAddrForHost(host, port);
>  }



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Commented] (HADOOP-17542) IPV6 support in Netutils#createSocketAddress

2021-02-25 Thread ANANDA G B (Jira)


[ 
https://issues.apache.org/jira/browse/HADOOP-17542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17290905#comment-17290905
 ] 

ANANDA G B commented on HADOOP-17542:
-

[~hemanthboyina] Can you please review

> IPV6 support in Netutils#createSocketAddress 
> -
>
> Key: HADOOP-17542
> URL: https://issues.apache.org/jira/browse/HADOOP-17542
> Project: Hadoop Common
>  Issue Type: Sub-task
>Affects Versions: 3.1.1
>Reporter: ANANDA G B
>Priority: Minor
>  Labels: ipv6
> Attachments: HADOOP-17542-HADOOP-11890-001.patch
>
>
> Currently NetUtils#createSocketAddress not supporting if target is IPV6 ip. 
> If target is IPV6 ip then it throw "Does not contain a valid host:port 
> authority: ".
> This need be support.
> public static InetSocketAddress createSocketAddr(String target,
>  int defaultPort,
>  String configName,
>  boolean useCacheIfPresent) {
>  String helpText = "";
>  if (configName != null)
> { helpText = " (configuration property '" + configName + "')"; }
> if (target == null)
> { throw new IllegalArgumentException("Target address cannot be null." + 
> helpText); }
> target = target.trim();
>  boolean hasScheme = target.contains("://");
>  URI uri = createURI(target, hasScheme, helpText, useCacheIfPresent);
> String host = uri.getHost();
>  int port = uri.getPort();
>  if (port == -1)
> { port = defaultPort; }
> String path = uri.getPath();
> if ((host == null) || (port < 0) ||
>  (!hasScheme && path != null && !path.isEmpty()))
> { throw new IllegalArgumentException( *"Does not contain a valid host:port 
> authority: " + target + helpText* ); }
> return createSocketAddrForHost(host, port);
>  }



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (HADOOP-17542) IPV6 support in Netutils#createSocketAddress

2021-02-25 Thread ANANDA G B (Jira)


 [ 
https://issues.apache.org/jira/browse/HADOOP-17542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ANANDA G B updated HADOOP-17542:

Description: 
Currently NetUtils#createSocketAddress not supporting if target is IPV6 ip. If 
target is IPV6 ip then it throw "Does not contain a valid host:port authority: 
".

This need be support.

public static InetSocketAddress createSocketAddr(String target,
 int defaultPort,
 String configName,
 boolean useCacheIfPresent) {
 String helpText = "";
 if (configName != null)

{ helpText = " (configuration property '" + configName + "')"; }

if (target == null)

{ throw new IllegalArgumentException("Target address cannot be null." + 
helpText); }

target = target.trim();
 boolean hasScheme = target.contains("://");
 URI uri = createURI(target, hasScheme, helpText, useCacheIfPresent);

String host = uri.getHost();
 int port = uri.getPort();
 if (port == -1)

{ port = defaultPort; }

String path = uri.getPath();

if ((host == null) || (port < 0) ||
 (!hasScheme && path != null && !path.isEmpty()))

{ throw new IllegalArgumentException( *"Does not contain a valid host:port 
authority: " + target + helpText* ); }

return createSocketAddrForHost(host, port);
 }

  was:
Currently NetUtils#createSocketAddress not supporting if target is IPV6 ip. If 
target is IPV6 ip then it throw "Does not contain a valid host:port authority: 
".

This need be support.

 public static InetSocketAddress createSocketAddr(String target,
 int defaultPort,
 String configName,
 boolean useCacheIfPresent) {
 String helpText = "";
 if (configName != null)

{ helpText = " (configuration property '" + configName + "')"; }

if (target == null)

{ throw new IllegalArgumentException("Target address cannot be null." + 
helpText); }

target = target.trim();
 boolean hasScheme = target.contains("://");
 URI uri = createURI(target, hasScheme, helpText, useCacheIfPresent);

String host = uri.getHost();
 int port = uri.getPort();
 if (port == -1)

{ port = defaultPort; }

String path = uri.getPath();

if ((host == null) || (port < 0) ||
 (!hasScheme && path != null && !path.isEmpty()))

{ throw new IllegalArgumentException( *"Does not contain a valid host:port 
authority: " + target + helpText* ); }

return createSocketAddrForHost(host, port);
 } 


> IPV6 support in Netutils#createSocketAddress 
> -
>
> Key: HADOOP-17542
> URL: https://issues.apache.org/jira/browse/HADOOP-17542
> Project: Hadoop Common
>  Issue Type: Sub-task
>Affects Versions: 3.1.1
>Reporter: ANANDA G B
>Priority: Minor
>  Labels: ipv6
> Attachments: HADOOP-17542-HADOOP-11890-001.patch
>
>
> Currently NetUtils#createSocketAddress not supporting if target is IPV6 ip. 
> If target is IPV6 ip then it throw "Does not contain a valid host:port 
> authority: ".
> This need be support.
> public static InetSocketAddress createSocketAddr(String target,
>  int defaultPort,
>  String configName,
>  boolean useCacheIfPresent) {
>  String helpText = "";
>  if (configName != null)
> { helpText = " (configuration property '" + configName + "')"; }
> if (target == null)
> { throw new IllegalArgumentException("Target address cannot be null." + 
> helpText); }
> target = target.trim();
>  boolean hasScheme = target.contains("://");
>  URI uri = createURI(target, hasScheme, helpText, useCacheIfPresent);
> String host = uri.getHost();
>  int port = uri.getPort();
>  if (port == -1)
> { port = defaultPort; }
> String path = uri.getPath();
> if ((host == null) || (port < 0) ||
>  (!hasScheme && path != null && !path.isEmpty()))
> { throw new IllegalArgumentException( *"Does not contain a valid host:port 
> authority: " + target + helpText* ); }
> return createSocketAddrForHost(host, port);
>  }



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (HADOOP-17542) IPV6 support in Netutils#createSocketAddress

2021-02-25 Thread ANANDA G B (Jira)


 [ 
https://issues.apache.org/jira/browse/HADOOP-17542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ANANDA G B updated HADOOP-17542:

Description: 
Currently NetUtils#createSocketAddress not supporting if target is IPV6 ip. If 
target is IPV6 ip then it throw "Does not contain a valid host:port authority: 
".

This need be support.

 public static InetSocketAddress createSocketAddr(String target,
 int defaultPort,
 String configName,
 boolean useCacheIfPresent) {
 String helpText = "";
 if (configName != null)

{ helpText = " (configuration property '" + configName + "')"; }

if (target == null)

{ throw new IllegalArgumentException("Target address cannot be null." + 
helpText); }

target = target.trim();
 boolean hasScheme = target.contains("://");
 URI uri = createURI(target, hasScheme, helpText, useCacheIfPresent);

String host = uri.getHost();
 int port = uri.getPort();
 if (port == -1)

{ port = defaultPort; }

String path = uri.getPath();

if ((host == null) || (port < 0) ||
 (!hasScheme && path != null && !path.isEmpty()))

{ throw new IllegalArgumentException( *"Does not contain a valid host:port 
authority: " + target + helpText* ); }

return createSocketAddrForHost(host, port);
 } 

  was:
Currently NetUtils#createSocketAddress not supporting if target is IPV6 ip. If 
target is IPV6 ip then it throw "Does not contain a valid host:port authority: 
".

This need be support.

public static InetSocketAddress createSocketAddr(String target,
 int defaultPort,
 String configName,
 boolean useCacheIfPresent) {
 String helpText = "";
 if (configName != null) {
 helpText = " (configuration property '" + configName + "')";
 }
 if (target == null) {
 throw new IllegalArgumentException("Target address cannot be null." +
 helpText);
 }
 target = target.trim();
 boolean hasScheme = target.contains("://");
 URI uri = createURI(target, hasScheme, helpText, useCacheIfPresent);

String host = uri.getHost();
 int port = uri.getPort();
 if (port == -1) {
 port = defaultPort;
 }
 String path = uri.getPath();

if ((host == null) || (port < 0) ||
 (!hasScheme && path != null && !path.isEmpty())) {
 throw new IllegalArgumentException(
 "Does not contain a valid host:port authority: " + target + helpText
 );
 }
 return createSocketAddrForHost(host, port);
 }


> IPV6 support in Netutils#createSocketAddress 
> -
>
> Key: HADOOP-17542
> URL: https://issues.apache.org/jira/browse/HADOOP-17542
> Project: Hadoop Common
>  Issue Type: Sub-task
>Affects Versions: 3.1.1
>Reporter: ANANDA G B
>Priority: Minor
>  Labels: ipv6
> Attachments: HADOOP-17542-HADOOP-11890-001.patch
>
>
> Currently NetUtils#createSocketAddress not supporting if target is IPV6 ip. 
> If target is IPV6 ip then it throw "Does not contain a valid host:port 
> authority: ".
> This need be support.
>  public static InetSocketAddress createSocketAddr(String target,
>  int defaultPort,
>  String configName,
>  boolean useCacheIfPresent) {
>  String helpText = "";
>  if (configName != null)
> { helpText = " (configuration property '" + configName + "')"; }
> if (target == null)
> { throw new IllegalArgumentException("Target address cannot be null." + 
> helpText); }
> target = target.trim();
>  boolean hasScheme = target.contains("://");
>  URI uri = createURI(target, hasScheme, helpText, useCacheIfPresent);
> String host = uri.getHost();
>  int port = uri.getPort();
>  if (port == -1)
> { port = defaultPort; }
> String path = uri.getPath();
> if ((host == null) || (port < 0) ||
>  (!hasScheme && path != null && !path.isEmpty()))
> { throw new IllegalArgumentException( *"Does not contain a valid host:port 
> authority: " + target + helpText* ); }
> return createSocketAddrForHost(host, port);
>  } 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (HADOOP-17542) IPV6 support in Netutils#createSocketAddress

2021-02-25 Thread ANANDA G B (Jira)


 [ 
https://issues.apache.org/jira/browse/HADOOP-17542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ANANDA G B updated HADOOP-17542:

Description: 
Currently NetUtils#createSocketAddress not supporting if target is IPV6 ip. If 
target is IPV6 ip then it throw "Does not contain a valid host:port authority: 
".

This need be support.

public static InetSocketAddress createSocketAddr(String target,
 int defaultPort,
 String configName,
 boolean useCacheIfPresent) {
 String helpText = "";
 if (configName != null) {
 helpText = " (configuration property '" + configName + "')";
 }
 if (target == null) {
 throw new IllegalArgumentException("Target address cannot be null." +
 helpText);
 }
 target = target.trim();
 boolean hasScheme = target.contains("://");
 URI uri = createURI(target, hasScheme, helpText, useCacheIfPresent);

String host = uri.getHost();
 int port = uri.getPort();
 if (port == -1) {
 port = defaultPort;
 }
 String path = uri.getPath();

if ((host == null) || (port < 0) ||
 (!hasScheme && path != null && !path.isEmpty())) {
 throw new IllegalArgumentException(
 "Does not contain a valid host:port authority: " + target + helpText
 );
 }
 return createSocketAddrForHost(host, port);
 }

> IPV6 support in Netutils#createSocketAddress 
> -
>
> Key: HADOOP-17542
> URL: https://issues.apache.org/jira/browse/HADOOP-17542
> Project: Hadoop Common
>  Issue Type: Sub-task
>Affects Versions: 3.1.1
>Reporter: ANANDA G B
>Priority: Minor
>  Labels: ipv6
> Attachments: HADOOP-17542-HADOOP-11890-001.patch
>
>
> Currently NetUtils#createSocketAddress not supporting if target is IPV6 ip. 
> If target is IPV6 ip then it throw "Does not contain a valid host:port 
> authority: ".
> This need be support.
> public static InetSocketAddress createSocketAddr(String target,
>  int defaultPort,
>  String configName,
>  boolean useCacheIfPresent) {
>  String helpText = "";
>  if (configName != null) {
>  helpText = " (configuration property '" + configName + "')";
>  }
>  if (target == null) {
>  throw new IllegalArgumentException("Target address cannot be null." +
>  helpText);
>  }
>  target = target.trim();
>  boolean hasScheme = target.contains("://");
>  URI uri = createURI(target, hasScheme, helpText, useCacheIfPresent);
> String host = uri.getHost();
>  int port = uri.getPort();
>  if (port == -1) {
>  port = defaultPort;
>  }
>  String path = uri.getPath();
> if ((host == null) || (port < 0) ||
>  (!hasScheme && path != null && !path.isEmpty())) {
>  throw new IllegalArgumentException(
>  "Does not contain a valid host:port authority: " + target + helpText
>  );
>  }
>  return createSocketAddrForHost(host, port);
>  }



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (HADOOP-17542) IPV6 support in Netutils#createSocketAddress

2021-02-25 Thread ANANDA G B (Jira)


 [ 
https://issues.apache.org/jira/browse/HADOOP-17542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ANANDA G B updated HADOOP-17542:

Summary: IPV6 support in Netutils#createSocketAddress   (was: Avoid unsafe 
split and append on fields that might be IPv6 literals)

> IPV6 support in Netutils#createSocketAddress 
> -
>
> Key: HADOOP-17542
> URL: https://issues.apache.org/jira/browse/HADOOP-17542
> Project: Hadoop Common
>  Issue Type: Sub-task
>Affects Versions: 3.1.1
>Reporter: ANANDA G B
>Priority: Minor
>  Labels: ipv6
> Attachments: HADOOP-17542-HADOOP-11890-001.patch
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (HADOOP-17542) Avoid unsafe split and append on fields that might be IPv6 literals

2021-02-23 Thread ANANDA G B (Jira)


 [ 
https://issues.apache.org/jira/browse/HADOOP-17542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ANANDA G B updated HADOOP-17542:

Attachment: (was: HDFS-15851_001.patch)

> Avoid unsafe split and append on fields that might be IPv6 literals
> ---
>
> Key: HADOOP-17542
> URL: https://issues.apache.org/jira/browse/HADOOP-17542
> Project: Hadoop Common
>  Issue Type: Sub-task
>Affects Versions: 3.1.1
>Reporter: ANANDA G B
>Priority: Minor
>  Labels: ipv6
> Attachments: HADOOP-17542-HADOOP-11890-001.patch
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (HADOOP-17542) Avoid unsafe split and append on fields that might be IPv6 literals

2021-02-23 Thread ANANDA G B (Jira)


 [ 
https://issues.apache.org/jira/browse/HADOOP-17542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ANANDA G B updated HADOOP-17542:

Attachment: HADOOP-17542-HADOOP-11890-001.patch

> Avoid unsafe split and append on fields that might be IPv6 literals
> ---
>
> Key: HADOOP-17542
> URL: https://issues.apache.org/jira/browse/HADOOP-17542
> Project: Hadoop Common
>  Issue Type: Sub-task
>Affects Versions: 3.1.1
>Reporter: ANANDA G B
>Priority: Minor
>  Labels: ipv6
> Attachments: HADOOP-17542-HADOOP-11890-001.patch
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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