drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From WeiWan <wei...@sunteng.com>
Subject Re: Compile failed with tpch.tgz: invalid block type
Date Fri, 06 Jan 2017 03:36:26 GMT
I use Maven 3.3.9. And I tried again this morning and found it worked. 

Maybe there is some problem with my network. Sorry for that.

Regards
Flow Wei



> On Jan 6, 2017, at 03:16, Chunhui Shi <cshi@maprtech.com> wrote:
> 
> Or you want to delete tpch-sample-data from your local mvn cache
> (~/.m2/repository/org/apache/drill/contrib/data/tpch-sample-data) and try
> it again. The previous download could be corrupted or did not succeed.
> 
> On Thu, Jan 5, 2017 at 11:02 AM, Chun Chang <cchang@maprtech.com> wrote:
> 
>> The FW might be the cause, but you can download manually so I would also
>> look at your maven version. My version Apache Maven 3.1.1 seems works but I
>> am outside of China.
>> 
>> On Thu, Jan 5, 2017 at 1:35 AM, WeiWan <weiwan@sunteng.com> wrote:
>> 
>>> branch: 1.8.0
>>> 
>>> I compile the drill source code with `mvn clean install -DskipTests`, and
>>> failed with errors below.
>>> 
>>> After rerun with `-X` debug mode, I found this file (tpch.tgz) was
>>> downloaded from `http://apache-drill.s3.amazonaws.com/files/sf-0.01_
>>> tpc-h_parquet_typed.tgz` <http://apache-drill.s3.
>>> amazonaws.com/files/sf-0.01_tpc-h_parquet_typed.tgz%60> . I download it
>>> manually and can unzip it successfully. So I suspect bugs in maven plugin
>>> `download-maven-plugin`, used in `contrib/data/tpch-sample-
>> data/pom.xml`.
>>> 
>>> By the way, I’m in China. Maybe the GFW cause this issue...
>>> 
>>> [ERROR] Failed to execute goal com.googlecode.maven-download-
>>> plugin:download-maven-plugin:1.2.0:wget (install-tgz) on project
>>> tpch-sample-data: IO Error: Error while expanding
>>> /Users/flow/workspace/github/drill/contrib/data/tpch-
>>> sample-data/target/classes/tpch/tpch.tgz: invalid block type -> [Help 1]
>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>> execute
>>> goal com.googlecode.maven-download-plugin:download-maven-plugin:
>> 1.2.0:wget
>>> (install-tgz) on project tpch-sample-data: IO Error
>>>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
>>> MojoExecutor.java:212)
>>>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
>>> MojoExecutor.java:153)
>>>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
>>> MojoExecutor.java:145)
>>>    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.
>>> buildProject(LifecycleModuleBuilder.java:116)
>>>    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.
>>> buildProject(LifecycleModuleBuilder.java:80)
>>>    at org.apache.maven.lifecycle.internal.builder.singlethreaded.
>>> SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>>>    at org.apache.maven.lifecycle.internal.LifecycleStarter.
>>> execute(LifecycleStarter.java:128)
>>>    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
>>>    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
>>>    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
>>>    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
>>>    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
>>>    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
>>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>    at sun.reflect.NativeMethodAccessorImpl.invoke(
>>> NativeMethodAccessorImpl.java:62)
>>>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>>> DelegatingMethodAccessorImpl.java:43)
>>>    at java.lang.reflect.Method.invoke(Method.java:498)
>>>    at org.codehaus.plexus.classworlds.launcher.Launcher.
>>> launchEnhanced(Launcher.java:289)
>>>    at org.codehaus.plexus.classworlds.launcher.Launcher.
>>> launch(Launcher.java:229)
>>>    at org.codehaus.plexus.classworlds.launcher.Launcher.
>>> mainWithExitCode(Launcher.java:415)
>>>    at org.codehaus.plexus.classworlds.launcher.Launcher.
>>> main(Launcher.java:356)
>>> Caused by: org.apache.maven.plugin.MojoExecutionException: IO Error
>>>    at com.googlecode.WGet.execute(WGet.java:260)
>>>    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
>>> DefaultBuildPluginManager.java:134)
>>>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
>>> MojoExecutor.java:207)
>>>    ... 20 more
>>> Caused by: org.codehaus.plexus.archiver.ArchiverException: Error while
>>> expanding /Users/flow/workspace/github/drill/contrib/data/tpch-
>>> sample-data/target/classes/tpch/tpch.tgz
>>>    at org.codehaus.plexus.archiver.tar.TarUnArchiver.execute(
>>> TarUnArchiver.java:101)
>>>    at org.codehaus.plexus.archiver.AbstractUnArchiver.extract(
>>> AbstractUnArchiver.java:120)
>>>    at com.googlecode.WGet.unpack(WGet.java:269)
>>>    at com.googlecode.WGet.execute(WGet.java:255)
>>>    ... 22 more
>>> Caused by: java.util.zip.ZipException: invalid block type
>>>    at java.util.zip.InflaterInputStream.read(
>>> InflaterInputStream.java:164)
>>>    at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:117)
>>>    at org.codehaus.plexus.archiver.tar.TarBuffer.readBlock(
>>> TarBuffer.java:260)
>>>    at org.codehaus.plexus.archiver.tar.TarBuffer.readRecord(
>>> TarBuffer.java:222)
>>>    at org.codehaus.plexus.archiver.tar.TarInputStream.read(
>>> TarInputStream.java:371)
>>>    at org.codehaus.plexus.archiver.tar.TarInputStream.read(
>>> TarInputStream.java:314)
>>>    at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:188)
>>>    at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:174)
>>>    at org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.
>> extractFile(
>>> AbstractZipUnArchiver.java:226)
>>>    at org.codehaus.plexus.archiver.tar.TarUnArchiver.execute(
>>> TarUnArchiver.java:93)
>>>    ... 25 more
>>> 
>>> 
>>> 
>>> 
>>> Regards
>>> Flow Wei
>>> 
>>> 
>>> 
>>> 
>> 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message