[jira] [Work logged] (HIVE-22190) Class HiveMetaStoreClient fails to instantiate when running on Java 11

2019-09-11 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HIVE-22190?focusedWorklogId=310619=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-310619
 ]

ASF GitHub Bot logged work on HIVE-22190:
-

Author: ASF GitHub Bot
Created on: 11/Sep/19 13:57
Start Date: 11/Sep/19 13:57
Worklog Time Spent: 10m 
  Work Description: frankgh commented on pull request #765: HIVE-22190: 
Class HiveMetaStoreClient fails to instantiate when runni…
URL: https://github.com/apache/hive/pull/765
 
 
   
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 310619)
Time Spent: 40m  (was: 0.5h)

> Class HiveMetaStoreClient fails to instantiate when running on Java 11
> --
>
> Key: HIVE-22190
> URL: https://issues.apache.org/jira/browse/HIVE-22190
> Project: Hive
>  Issue Type: Bug
>  Components: Hive
>Affects Versions: 3.1.2, 2.3.6
> Environment: Java Version: "11.0.3" 2019-04-16 LTS
>Reporter: Francisco Guerrero
>Assignee: Francisco Guerrero
>Priority: Major
>  Labels: pull-request-available
> Fix For: 2.3.7
>
> Attachments: HIVE-22190.01.patch, HIVE-22190.01.patch
>
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> HiveMetaStoreClient fails to initialize in JDK with error:
> Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient 
> with cause
> class [Ljava.lang.Object; cannot be cast to class [Ljava.net.URI; 
> ([Ljava.lang.Object; and [Ljava.net.URI; are in module java.base of loader 
> 'bootstrap')
> This is due the way toArray is being invoked. The compiles and runs well on 
> Java 8. But when running in Java 11, the class instantiation fails. This is a 
> snippet of code to reproduce the issue:
> {noformat}
> URI metastoreUris[] = new URI[2];
> try {
> metastoreUris[0] = new URI("http://google.com;);
> } catch (URISyntaxException e) {
> e.printStackTrace();
> }
> List uriList = Arrays.asList(metastoreUris);
> Collections.shuffle(uriList);
> metastoreUris = (URI[]) uriList.toArray();
> {noformat}
> This is causing any client using HiveMetaStoreClient fail, because the 
> constructor is unable to initialize. The type erasure is handled differently 
> in Java 8 and Java 11.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)


[jira] [Work logged] (HIVE-22190) Class HiveMetaStoreClient fails to instantiate when running on Java 11

2019-09-11 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HIVE-22190?focusedWorklogId=310618=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-310618
 ]

ASF GitHub Bot logged work on HIVE-22190:
-

Author: ASF GitHub Bot
Created on: 11/Sep/19 13:57
Start Date: 11/Sep/19 13:57
Worklog Time Spent: 10m 
  Work Description: frankgh commented on issue #765: HIVE-22190: Class 
HiveMetaStoreClient fails to instantiate when runni…
URL: https://github.com/apache/hive/pull/765#issuecomment-530392666
 
 
   Closing as this has been fixed by HIVE-21508
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 310618)
Time Spent: 0.5h  (was: 20m)

> Class HiveMetaStoreClient fails to instantiate when running on Java 11
> --
>
> Key: HIVE-22190
> URL: https://issues.apache.org/jira/browse/HIVE-22190
> Project: Hive
>  Issue Type: Bug
>  Components: Hive
>Affects Versions: 3.1.2, 2.3.6
> Environment: Java Version: "11.0.3" 2019-04-16 LTS
>Reporter: Francisco Guerrero
>Assignee: Francisco Guerrero
>Priority: Major
>  Labels: pull-request-available
> Fix For: 2.3.7
>
> Attachments: HIVE-22190.01.patch, HIVE-22190.01.patch
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> HiveMetaStoreClient fails to initialize in JDK with error:
> Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient 
> with cause
> class [Ljava.lang.Object; cannot be cast to class [Ljava.net.URI; 
> ([Ljava.lang.Object; and [Ljava.net.URI; are in module java.base of loader 
> 'bootstrap')
> This is due the way toArray is being invoked. The compiles and runs well on 
> Java 8. But when running in Java 11, the class instantiation fails. This is a 
> snippet of code to reproduce the issue:
> {noformat}
> URI metastoreUris[] = new URI[2];
> try {
> metastoreUris[0] = new URI("http://google.com;);
> } catch (URISyntaxException e) {
> e.printStackTrace();
> }
> List uriList = Arrays.asList(metastoreUris);
> Collections.shuffle(uriList);
> metastoreUris = (URI[]) uriList.toArray();
> {noformat}
> This is causing any client using HiveMetaStoreClient fail, because the 
> constructor is unable to initialize. The type erasure is handled differently 
> in Java 8 and Java 11.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)


[jira] [Work logged] (HIVE-22190) Class HiveMetaStoreClient fails to instantiate when running on Java 11

2019-09-11 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HIVE-22190?focusedWorklogId=310621=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-310621
 ]

ASF GitHub Bot logged work on HIVE-22190:
-

Author: ASF GitHub Bot
Created on: 11/Sep/19 13:57
Start Date: 11/Sep/19 13:57
Worklog Time Spent: 10m 
  Work Description: frankgh commented on pull request #766: HIVE-22190: 
Class HiveMetaStoreClient fails to instantiate when runni…
URL: https://github.com/apache/hive/pull/766
 
 
   
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 310621)
Time Spent: 1h  (was: 50m)

> Class HiveMetaStoreClient fails to instantiate when running on Java 11
> --
>
> Key: HIVE-22190
> URL: https://issues.apache.org/jira/browse/HIVE-22190
> Project: Hive
>  Issue Type: Bug
>  Components: Hive
>Affects Versions: 3.1.2, 2.3.6
> Environment: Java Version: "11.0.3" 2019-04-16 LTS
>Reporter: Francisco Guerrero
>Assignee: Francisco Guerrero
>Priority: Major
>  Labels: pull-request-available
> Fix For: 2.3.7
>
> Attachments: HIVE-22190.01.patch, HIVE-22190.01.patch
>
>  Time Spent: 1h
>  Remaining Estimate: 0h
>
> HiveMetaStoreClient fails to initialize in JDK with error:
> Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient 
> with cause
> class [Ljava.lang.Object; cannot be cast to class [Ljava.net.URI; 
> ([Ljava.lang.Object; and [Ljava.net.URI; are in module java.base of loader 
> 'bootstrap')
> This is due the way toArray is being invoked. The compiles and runs well on 
> Java 8. But when running in Java 11, the class instantiation fails. This is a 
> snippet of code to reproduce the issue:
> {noformat}
> URI metastoreUris[] = new URI[2];
> try {
> metastoreUris[0] = new URI("http://google.com;);
> } catch (URISyntaxException e) {
> e.printStackTrace();
> }
> List uriList = Arrays.asList(metastoreUris);
> Collections.shuffle(uriList);
> metastoreUris = (URI[]) uriList.toArray();
> {noformat}
> This is causing any client using HiveMetaStoreClient fail, because the 
> constructor is unable to initialize. The type erasure is handled differently 
> in Java 8 and Java 11.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)


[jira] [Work logged] (HIVE-22190) Class HiveMetaStoreClient fails to instantiate when running on Java 11

2019-09-11 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HIVE-22190?focusedWorklogId=310620=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-310620
 ]

ASF GitHub Bot logged work on HIVE-22190:
-

Author: ASF GitHub Bot
Created on: 11/Sep/19 13:57
Start Date: 11/Sep/19 13:57
Worklog Time Spent: 10m 
  Work Description: frankgh commented on issue #766: HIVE-22190: Class 
HiveMetaStoreClient fails to instantiate when runni…
URL: https://github.com/apache/hive/pull/766#issuecomment-530392821
 
 
   Closing as this has been fixed by HIVE-21508
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 310620)
Time Spent: 50m  (was: 40m)

> Class HiveMetaStoreClient fails to instantiate when running on Java 11
> --
>
> Key: HIVE-22190
> URL: https://issues.apache.org/jira/browse/HIVE-22190
> Project: Hive
>  Issue Type: Bug
>  Components: Hive
>Affects Versions: 3.1.2, 2.3.6
> Environment: Java Version: "11.0.3" 2019-04-16 LTS
>Reporter: Francisco Guerrero
>Assignee: Francisco Guerrero
>Priority: Major
>  Labels: pull-request-available
> Fix For: 2.3.7
>
> Attachments: HIVE-22190.01.patch, HIVE-22190.01.patch
>
>  Time Spent: 50m
>  Remaining Estimate: 0h
>
> HiveMetaStoreClient fails to initialize in JDK with error:
> Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient 
> with cause
> class [Ljava.lang.Object; cannot be cast to class [Ljava.net.URI; 
> ([Ljava.lang.Object; and [Ljava.net.URI; are in module java.base of loader 
> 'bootstrap')
> This is due the way toArray is being invoked. The compiles and runs well on 
> Java 8. But when running in Java 11, the class instantiation fails. This is a 
> snippet of code to reproduce the issue:
> {noformat}
> URI metastoreUris[] = new URI[2];
> try {
> metastoreUris[0] = new URI("http://google.com;);
> } catch (URISyntaxException e) {
> e.printStackTrace();
> }
> List uriList = Arrays.asList(metastoreUris);
> Collections.shuffle(uriList);
> metastoreUris = (URI[]) uriList.toArray();
> {noformat}
> This is causing any client using HiveMetaStoreClient fail, because the 
> constructor is unable to initialize. The type erasure is handled differently 
> in Java 8 and Java 11.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)


[jira] [Work logged] (HIVE-22190) Class HiveMetaStoreClient fails to instantiate when running on Java 11

2019-09-11 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HIVE-22190?focusedWorklogId=310433=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-310433
 ]

ASF GitHub Bot logged work on HIVE-22190:
-

Author: ASF GitHub Bot
Created on: 11/Sep/19 09:22
Start Date: 11/Sep/19 09:22
Worklog Time Spent: 10m 
  Work Description: frankgh commented on pull request #766: HIVE-22190: 
Class HiveMetaStoreClient fails to instantiate when runni…
URL: https://github.com/apache/hive/pull/766
 
 
   …ng on Java 11
   
   HiveMetaStoreClient fails to initialize in JDK with error:
   Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient 
with cause
   class [Ljava.lang.Object; cannot be cast to class [Ljava.net.URI; 
([Ljava.lang.Object; and [Ljava
   
   This commit refactors the code to convert a List to array
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 310433)
Time Spent: 20m  (was: 10m)

> Class HiveMetaStoreClient fails to instantiate when running on Java 11
> --
>
> Key: HIVE-22190
> URL: https://issues.apache.org/jira/browse/HIVE-22190
> Project: Hive
>  Issue Type: Bug
>  Components: Hive
>Affects Versions: 2.3.6
> Environment: Java Version: "11.0.3" 2019-04-16 LTS
>Reporter: Francisco Guerrero
>Priority: Major
>  Labels: pull-request-available
> Attachments: HIVE-22190.01.patch
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> HiveMetaStoreClient fails to initialize in JDK with error:
> Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient 
> with cause
> class [Ljava.lang.Object; cannot be cast to class [Ljava.net.URI; 
> ([Ljava.lang.Object; and [Ljava.net.URI; are in module java.base of loader 
> 'bootstrap')
> This is due the way toArray is being invoked. The compiles and runs well on 
> Java 8. But when running in Java 11, the class instantiation fails. This is a 
> snippet of code to reproduce the issue:
> {noformat}
> URI metastoreUris[] = new URI[2];
> try {
> metastoreUris[0] = new URI("http://google.com;);
> } catch (URISyntaxException e) {
> e.printStackTrace();
> }
> List uriList = Arrays.asList(metastoreUris);
> Collections.shuffle(uriList);
> metastoreUris = (URI[]) uriList.toArray();
> {noformat}
> This is causing any client using HiveMetaStoreClient fail, because the 
> constructor is unable to initialize. The type erasure is handled differently 
> in Java 8 and Java 11.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)


[jira] [Work logged] (HIVE-22190) Class HiveMetaStoreClient fails to instantiate when running on Java 11

2019-09-11 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HIVE-22190?focusedWorklogId=310382=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-310382
 ]

ASF GitHub Bot logged work on HIVE-22190:
-

Author: ASF GitHub Bot
Created on: 11/Sep/19 08:02
Start Date: 11/Sep/19 08:02
Worklog Time Spent: 10m 
  Work Description: frankgh commented on pull request #765: HIVE-22190: 
Class HiveMetaStoreClient fails to instantiate when runni…
URL: https://github.com/apache/hive/pull/765
 
 
   …ng on Java 11
   
   HiveMetaStoreClient fails to initialize in JDK with error:
   Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient 
with cause
   class [Ljava.lang.Object; cannot be cast to class [Ljava.net.URI; 
([Ljava.lang.Object; and [Ljava.net.URI; are in module java.base of loader 
'bootstrap')
   
   This commit refactors the code to convert a List to array
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 310382)
Remaining Estimate: 0h
Time Spent: 10m

> Class HiveMetaStoreClient fails to instantiate when running on Java 11
> --
>
> Key: HIVE-22190
> URL: https://issues.apache.org/jira/browse/HIVE-22190
> Project: Hive
>  Issue Type: Bug
>  Components: Hive
>Affects Versions: 2.3.6
> Environment: Java Version: "11.0.3" 2019-04-16 LTS
>Reporter: Francisco Guerrero
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> HiveMetaStoreClient fails to initialize in JDK with error:
> Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient 
> with cause
> class [Ljava.lang.Object; cannot be cast to class [Ljava.net.URI; 
> ([Ljava.lang.Object; and [Ljava.net.URI; are in module java.base of loader 
> 'bootstrap')
> This is due the way toArray is being invoked. The compiles and runs well on 
> Java 8. But when running in Java 11, the class instantiation fails. This is a 
> snippet of code to reproduce the issue:
> {noformat}
> URI metastoreUris[] = new URI[2];
> try {
> metastoreUris[0] = new URI("http://google.com;);
> } catch (URISyntaxException e) {
> e.printStackTrace();
> }
> List uriList = Arrays.asList(metastoreUris);
> Collections.shuffle(uriList);
> metastoreUris = (URI[]) uriList.toArray();
> {noformat}
> This is causing any client using HiveMetaStoreClient fail, because the 
> constructor is unable to initialize. The type erasure is handled differently 
> in Java 8 and Java 11.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)