Open sumitkulkarni opened 8 years ago
same issue for me
I was encountering a similar issue but was able to get things running by using JDK7 and ./gradlew clean shadowJar
to build.
happens to me when trying to use different version of presto to build, e.g.
./gradlew clean shadowJar -Dairpal.prestoVersion=0.87
I have the same problem when I set pretoVersion=0.144.1, anyone could help us?
https://github.com/airlift/airlift/commit/d93edf1895e3953c1c06018586a2757a86da497b
AsyncHttpClient removed from airlift at 2014, replaced by HttpClient.
so how can we fix it?
./gradlew -Dairpal.prestoVersion=0.77 clean shadowJar Use presto version 0.77 as Airpal source uses this version . You can find dependency jars inside Airpal folder ...presto-spi-0.77 ,presto-main-0.77,presto-client-0.77 etc. check also build.gradle file which contains presto version ext { prestoVersion = "0.77" if (System.properties['airpal.prestoVersion'] != null) { prestoVersion = System.properties['airpal.prestoVersion'] } }
If you want to use latest versions of presto you need to change the Airpal source code to resolve compilation errors by referring to presto api.
While building airpal I am getting following error.. Please help me !
I am trying to build airpal by using latest version of presto
warning: [options] bootstrap class path not set in conjunction with -source 1.7 /Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airlift/http/client/OldJettyHttpClient.java:13: error: cannot find symbol import io.airlift.http.client.AsyncHttpClient; ^ symbol: class AsyncHttpClient location: package io.airlift.http.client /Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airlift/http/client/OldJettyHttpClient.java:66: error: cannot find symbol implements AsyncHttpClient ^ symbol: class AsyncHttpClient /Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airlift/http/client/OldJettyHttpClient.java:227: error: cannot find symbol public <T, E extends Exception> HttpResponseFuture executeAsync(Request request, ResponseHandler<T, E> responseHandler)
^
symbol: class HttpResponseFuture
location: class OldJettyHttpClient
/Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airlift/http/client/OldJettyHttpClient.java:381: error: cannot find symbol
implements HttpResponseFuture
^
symbol: class HttpResponseFuture
location: class OldJettyHttpClient
/Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airpal/core/execution/InputReferenceExtractor.java:14: error: cannot find symbol
import com.facebook.presto.sql.tree.UseCollection;
^
symbol: class UseCollection
location: package com.facebook.presto.sql.tree
/Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airpal/core/execution/InputReferenceExtractor.java:113: error: cannot find symbol
protected CatalogSchemaContext visitUseCollection(UseCollection node, CatalogSchemaContext context)
^
symbol: class UseCollection
location: class InputReferenceExtractor
/Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airpal/core/execution/ExecutionClient.java:29: error: package org.jetbrains.annotations does not exist
import org.jetbrains.annotations.NotNull;
^
/Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airpal/presto/QueryRunner.java:6: error: cannot find symbol
import io.airlift.http.client.AsyncHttpClient;
^
symbol: class AsyncHttpClient
location: package io.airlift.http.client
/Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airpal/presto/QueryInfoClient.java:11: error: cannot find symbol
import io.airlift.http.client.AsyncHttpClient;
^
symbol: class AsyncHttpClient
location: package io.airlift.http.client
/Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airpal/presto/QueryRunner.java:19: error: cannot find symbol
private final AsyncHttpClient httpClient;
^
symbol: class AsyncHttpClient
location: class QueryRunner
/Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airpal/presto/QueryRunner.java:21: error: cannot find symbol
protected QueryRunner(ClientSession session, JsonCodec queryResultsCodec, AsyncHttpClient httpClient)
^
symbol: class AsyncHttpClient
location: class QueryRunner
/Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airpal/presto/QueryRunner.java:42: error: cannot find symbol
private final AsyncHttpClient httpClient;
^
symbol: class AsyncHttpClient
location: class QueryRunnerFactory
/Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airpal/presto/QueryRunner.java:44: error: cannot find symbol
public QueryRunnerFactory(ClientSessionFactory sessionFactory, AsyncHttpClient httpClient)
^
symbol: class AsyncHttpClient
location: class QueryRunnerFactory
/Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airpal/presto/QueryInfoClient.java:39: error: cannot find symbol
private final AsyncHttpClient httpClient;
^
symbol: class AsyncHttpClient
location: class QueryInfoClient
/Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airpal/presto/QueryInfoClient.java:42: error: cannot find symbol
public QueryInfoClient(AsyncHttpClient httpClient, JsonCodec queryInfoCodec)
^
symbol: class AsyncHttpClient
location: class QueryInfoClient
/Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airpal/modules/AirpalModule.java:61: error: cannot find symbol
import io.airlift.http.client.AsyncHttpClient;
^
symbol: class AsyncHttpClient
location: package io.airlift.http.client
/Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airpal/modules/AirpalModule.java:69: error: package org.jetbrains.annotations does not exist
import org.jetbrains.annotations.Nullable;
^
/Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airpal/modules/AirpalModule.java:158: error: cannot find symbol
public AsyncHttpClient provideQueryRunnerHttpClient()
^
symbol: class AsyncHttpClient
location: class AirpalModule
/Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airpal/modules/AirpalModule.java:194: error: cannot find symbol
@Named("query-runner-http-client") AsyncHttpClient httpClient)
^
symbol: class AsyncHttpClient
location: class AirpalModule
/Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airpal/sql/beans/TableRow.java:21: error: cannot find symbol
import static com.google.inject.internal.util.$Preconditions.checkNotNull;
^
symbol: class $Preconditions
location: package com.google.inject.internal.util
/Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airpal/sql/beans/TableRow.java:21: error: static import only from classes and interfaces
import static com.google.inject.internal.util.$Preconditions.checkNotNull;
^
/Users/sumit/Documents/workspace/airpal/src/main/java/com/airbnb/airpal/modules/AirpalModule.java:309: error: cannot find symbol
@Nullable
^
symbol: class Nullable
location: class AirpalModule
22 errors
:compileJava FAILED
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':compileJava'.
BUILD FAILED