You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by James Duong <ja...@bitquilltech.com.INVALID> on 2022/12/13 00:17:26 UTC

[Java]: Failures building Java pom

I have been trying to build Java from the root pom and am seeing errors
while running Flight-core tests from maven, suggesting build issues with
pojo classes:

[ERROR]   TestDictionaryUtils.<init>:1  Unresolved compilation problems:
The type org.apache.arrow.vector.types.pojo.ArrowType$Int cannot be
resolved. It is indirectly referenced from required type
org.apache.arrow.vector.types.pojo.DictionaryEncoding
The import org.apache.arrow.vector.types.pojo.ArrowType cannot be resolved
ArrowType cannot be resolved to a type

I'm building from command-line using mvn clean install. Using JDK OpenJDK
11 on macOS Ventura (intel).

Build output shows the following built before flight-grpc:
[INFO] Apache Arrow Java Root POM ......................... SUCCESS [
 8.002 s]
[INFO] Arrow Format ....................................... SUCCESS [
 5.354 s]
[INFO] Arrow Memory ....................................... SUCCESS [
 1.898 s]
[INFO] Arrow Memory - Core ................................ SUCCESS [
 9.141 s]
[INFO] Arrow Memory - Unsafe .............................. SUCCESS [
 5.892 s]
[INFO] Arrow Memory - Netty ............................... SUCCESS [
11.048 s]
[INFO] Arrow Vectors ...................................... SUCCESS [01:52
min]
[INFO] Arrow Compression .................................. SUCCESS [
 7.689 s]
[INFO] Arrow Tools ........................................ SUCCESS [
13.232 s]
[INFO] Arrow JDBC Adapter ................................. SUCCESS [
21.130 s]
[INFO] Arrow Plasma Client ................................ SUCCESS [
 6.158 s]
[INFO] Arrow Flight ....................................... SUCCESS [
 2.107 s]
[INFO] Arrow Flight Core .................................. FAILURE [
27.441 s]

Does anyone know why this might be failing?
Thanks

-- 

*James Duong*
Lead Software Developer
Bit Quill Technologies Inc.
Direct: +1.604.562.6082 | jamesd@bitquilltech.com
https://www.bitquilltech.com

This email message is for the sole use of the intended recipient(s) and may
contain confidential and privileged information.  Any unauthorized review,
use, disclosure, or distribution is prohibited.  If you are not the
intended recipient, please contact the sender by reply email and destroy
all copies of the original message.  Thank you.

Re: [Java]: Failures building Java pom

Posted by James Duong <ja...@bitquilltech.com.INVALID>.
Thanks Larry.

This is working after deleting the repo and checking it out again. I've
updated my OS repeatedly since I last used the Java build so perhaps it was
related to those updates.

On Mon, Dec 12, 2022 at 4:51 PM Larry White <lj...@gmail.com> wrote:

> > The type org.apache.arrow.vector.types.pojo.ArrowType$Int cannot
> be resolved.
>
> This is a generated class. The source should be in the vector module, under
> target/generated-sources when the build starts. The process varies somewhat
> depending on the Arrow version, but if you're not seeing the source code,
> you could try the instructions at
> https://arrow.apache.org/docs/developers/java/index.html for the 10.0
> instructions.
>
> Hope that helps
>
> On Mon, Dec 12, 2022 at 7:18 PM James Duong <jamesd@bitquilltech.com
> .invalid>
> wrote:
>
> > I have been trying to build Java from the root pom and am seeing errors
> > while running Flight-core tests from maven, suggesting build issues with
> > pojo classes:
> >
> > [ERROR]   TestDictionaryUtils.<init>:1  Unresolved compilation problems:
> > The type org.apache.arrow.vector.types.pojo.ArrowType$Int cannot be
> > resolved. It is indirectly referenced from required type
> > org.apache.arrow.vector.types.pojo.DictionaryEncoding
> > The import org.apache.arrow.vector.types.pojo.ArrowType cannot be
> resolved
> > ArrowType cannot be resolved to a type
> >
> > I'm building from command-line using mvn clean install. Using JDK OpenJDK
> > 11 on macOS Ventura (intel).
> >
> > Build output shows the following built before flight-grpc:
> > [INFO] Apache Arrow Java Root POM ......................... SUCCESS [
> >  8.002 s]
> > [INFO] Arrow Format ....................................... SUCCESS [
> >  5.354 s]
> > [INFO] Arrow Memory ....................................... SUCCESS [
> >  1.898 s]
> > [INFO] Arrow Memory - Core ................................ SUCCESS [
> >  9.141 s]
> > [INFO] Arrow Memory - Unsafe .............................. SUCCESS [
> >  5.892 s]
> > [INFO] Arrow Memory - Netty ............................... SUCCESS [
> > 11.048 s]
> > [INFO] Arrow Vectors ...................................... SUCCESS
> [01:52
> > min]
> > [INFO] Arrow Compression .................................. SUCCESS [
> >  7.689 s]
> > [INFO] Arrow Tools ........................................ SUCCESS [
> > 13.232 s]
> > [INFO] Arrow JDBC Adapter ................................. SUCCESS [
> > 21.130 s]
> > [INFO] Arrow Plasma Client ................................ SUCCESS [
> >  6.158 s]
> > [INFO] Arrow Flight ....................................... SUCCESS [
> >  2.107 s]
> > [INFO] Arrow Flight Core .................................. FAILURE [
> > 27.441 s]
> >
> > Does anyone know why this might be failing?
> > Thanks
> >
> > --
> >
> > *James Duong*
> > Lead Software Developer
> > Bit Quill Technologies Inc.
> > Direct: +1.604.562.6082 | jamesd@bitquilltech.com
> > https://www.bitquilltech.com
> >
> > This email message is for the sole use of the intended recipient(s) and
> may
> > contain confidential and privileged information.  Any unauthorized
> review,
> > use, disclosure, or distribution is prohibited.  If you are not the
> > intended recipient, please contact the sender by reply email and destroy
> > all copies of the original message.  Thank you.
> >
>


-- 

*James Duong*
Lead Software Developer
Bit Quill Technologies Inc.
Direct: +1.604.562.6082 | jamesd@bitquilltech.com
https://www.bitquilltech.com

This email message is for the sole use of the intended recipient(s) and may
contain confidential and privileged information.  Any unauthorized review,
use, disclosure, or distribution is prohibited.  If you are not the
intended recipient, please contact the sender by reply email and destroy
all copies of the original message.  Thank you.

Re: [Java]: Failures building Java pom

Posted by Larry White <lj...@gmail.com>.
> The type org.apache.arrow.vector.types.pojo.ArrowType$Int cannot
be resolved.

This is a generated class. The source should be in the vector module, under
target/generated-sources when the build starts. The process varies somewhat
depending on the Arrow version, but if you're not seeing the source code,
you could try the instructions at
https://arrow.apache.org/docs/developers/java/index.html for the 10.0
instructions.

Hope that helps

On Mon, Dec 12, 2022 at 7:18 PM James Duong <ja...@bitquilltech.com.invalid>
wrote:

> I have been trying to build Java from the root pom and am seeing errors
> while running Flight-core tests from maven, suggesting build issues with
> pojo classes:
>
> [ERROR]   TestDictionaryUtils.<init>:1  Unresolved compilation problems:
> The type org.apache.arrow.vector.types.pojo.ArrowType$Int cannot be
> resolved. It is indirectly referenced from required type
> org.apache.arrow.vector.types.pojo.DictionaryEncoding
> The import org.apache.arrow.vector.types.pojo.ArrowType cannot be resolved
> ArrowType cannot be resolved to a type
>
> I'm building from command-line using mvn clean install. Using JDK OpenJDK
> 11 on macOS Ventura (intel).
>
> Build output shows the following built before flight-grpc:
> [INFO] Apache Arrow Java Root POM ......................... SUCCESS [
>  8.002 s]
> [INFO] Arrow Format ....................................... SUCCESS [
>  5.354 s]
> [INFO] Arrow Memory ....................................... SUCCESS [
>  1.898 s]
> [INFO] Arrow Memory - Core ................................ SUCCESS [
>  9.141 s]
> [INFO] Arrow Memory - Unsafe .............................. SUCCESS [
>  5.892 s]
> [INFO] Arrow Memory - Netty ............................... SUCCESS [
> 11.048 s]
> [INFO] Arrow Vectors ...................................... SUCCESS [01:52
> min]
> [INFO] Arrow Compression .................................. SUCCESS [
>  7.689 s]
> [INFO] Arrow Tools ........................................ SUCCESS [
> 13.232 s]
> [INFO] Arrow JDBC Adapter ................................. SUCCESS [
> 21.130 s]
> [INFO] Arrow Plasma Client ................................ SUCCESS [
>  6.158 s]
> [INFO] Arrow Flight ....................................... SUCCESS [
>  2.107 s]
> [INFO] Arrow Flight Core .................................. FAILURE [
> 27.441 s]
>
> Does anyone know why this might be failing?
> Thanks
>
> --
>
> *James Duong*
> Lead Software Developer
> Bit Quill Technologies Inc.
> Direct: +1.604.562.6082 | jamesd@bitquilltech.com
> https://www.bitquilltech.com
>
> This email message is for the sole use of the intended recipient(s) and may
> contain confidential and privileged information.  Any unauthorized review,
> use, disclosure, or distribution is prohibited.  If you are not the
> intended recipient, please contact the sender by reply email and destroy
> all copies of the original message.  Thank you.
>