I am getting the following errors when trying to install airpal
Hello,
I am getting the following issues when installing the airpal.
[ec2-user@ip-172-31-37-150 airpal]$ sudo ./gradlew -Dairpal.prestoVersion=0.85 clean shadowJar Download https://repo1.maven.org/maven2/com/facebook/presto/presto-client/0.85/presto-client-0.85.pom Download https://repo1.maven.org/maven2/com/facebook/presto/presto-root/0.85/presto-root-0.85.pom Download https://repo1.maven.org/maven2/io/airlift/airbase/28/airbase-28.pom Download https://repo1.maven.org/maven2/com/facebook/presto/presto-spi/0.85/presto-spi-0.85.pom Download https://repo1.maven.org/maven2/com/facebook/presto/presto-main/0.85/presto-main-0.85.pom Download https://repo1.maven.org/maven2/com/facebook/presto/presto-parser/0.85/presto-parser-0.85.pom Download https://repo1.maven.org/maven2/io/airlift/http-client/0.97/http-client-0.97.pom Download https://repo1.maven.org/maven2/io/airlift/airlift/0.97/airlift-0.97.pom Download https://repo1.maven.org/maven2/io/airlift/json/0.97/json-0.97.pom Download https://repo1.maven.org/maven2/io/airlift/bootstrap/0.97/bootstrap-0.97.pom Download https://repo1.maven.org/maven2/io/airlift/concurrent/0.97/concurrent-0.97.pom Download https://repo1.maven.org/maven2/io/airlift/node/0.97/node-0.97.pom Download https://repo1.maven.org/maven2/io/airlift/configuration/0.97/configuration-0.97.pom Download https://repo1.maven.org/maven2/io/airlift/discovery/0.97/discovery-0.97.pom Download https://repo1.maven.org/maven2/io/airlift/event/0.97/event-0.97.pom Download https://repo1.maven.org/maven2/io/airlift/floatingdecimal/0.2/floatingdecimal-0.2.pom Download https://repo1.maven.org/maven2/io/airlift/http-server/0.97/http-server-0.97.pom Download https://repo1.maven.org/maven2/io/airlift/jaxrs/0.97/jaxrs-0.97.pom Download https://repo1.maven.org/maven2/io/airlift/jmx/0.97/jmx-0.97.pom Download https://repo1.maven.org/maven2/io/airlift/jmx-http/0.97/jmx-http-0.97.pom Download https://repo1.maven.org/maven2/io/airlift/log/0.97/log-0.97.pom Download https://repo1.maven.org/maven2/io/airlift/log-manager/0.97/log-manager-0.97.pom Download https://repo1.maven.org/maven2/io/airlift/stats/0.97/stats-0.97.pom Download https://repo1.maven.org/maven2/io/airlift/trace-token/0.97/trace-token-0.97.pom Download https://repo1.maven.org/maven2/io/airlift/units/0.97/units-0.97.pom Download https://repo1.maven.org/maven2/com/facebook/presto/presto-client/0.85/presto-client-0.85.jar Download https://repo1.maven.org/maven2/com/facebook/presto/presto-spi/0.85/presto-spi-0.85.jar Download https://repo1.maven.org/maven2/com/facebook/presto/presto-main/0.85/presto-main-0.85.jar Download https://repo1.maven.org/maven2/com/facebook/presto/presto-parser/0.85/presto-parser-0.85.jar Download https://repo1.maven.org/maven2/io/airlift/http-client/0.97/http-client-0.97.jar Download https://repo1.maven.org/maven2/io/airlift/json/0.97/json-0.97.jar Download https://repo1.maven.org/maven2/io/airlift/bootstrap/0.97/bootstrap-0.97.jar Download https://repo1.maven.org/maven2/io/airlift/concurrent/0.97/concurrent-0.97.jar Download https://repo1.maven.org/maven2/io/airlift/node/0.97/node-0.97.jar Download https://repo1.maven.org/maven2/io/airlift/configuration/0.97/configuration-0.97.jar Download https://repo1.maven.org/maven2/io/airlift/discovery/0.97/discovery-0.97.jar Download https://repo1.maven.org/maven2/io/airlift/event/0.97/event-0.97.jar Download https://repo1.maven.org/maven2/io/airlift/floatingdecimal/0.2/floatingdecimal-0.2.jar Download https://repo1.maven.org/maven2/io/airlift/http-server/0.97/http-server-0.97.jar Download https://repo1.maven.org/maven2/io/airlift/jaxrs/0.97/jaxrs-0.97.jar Download https://repo1.maven.org/maven2/io/airlift/jmx/0.97/jmx-0.97.jar Download https://repo1.maven.org/maven2/io/airlift/jmx-http/0.97/jmx-http-0.97.jar Download https://repo1.maven.org/maven2/io/airlift/log/0.97/log-0.97.jar Download https://repo1.maven.org/maven2/io/airlift/log-manager/0.97/log-manager-0.97.jar Download https://repo1.maven.org/maven2/io/airlift/stats/0.97/stats-0.97.jar Download https://repo1.maven.org/maven2/io/airlift/trace-token/0.97/trace-token-0.97.jar Download https://repo1.maven.org/maven2/io/airlift/units/0.97/units-0.97.jar :cleanAssets UP-TO-DATE :clean :nodeSetup UP-TO-DATE :installAssets npm WARN package.json [email protected] No repository field. npm WARN package.json [email protected] string_decoder is also the name of a node core module.
[email protected] install /home/airpal/src/main/resources/assets/node_modules/bufferutil node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.33"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/airpal/src/main/resources/assets/node_modules/bufferutil/.node-gyp"
make: Entering directory /home/airpal/src/main/resources/assets/node_modules/bufferutil/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/obj.target/bufferutil.node SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished COPY Release/bufferutil.node make: Leaving directory/home/airpal/src/main/resources/assets/node_modules/bufferutil/build'
npm WARN prefer global [email protected] should be installed with -g
[email protected] install /home/airpal/src/main/resources/assets/node_modules/contextify node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.33"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/airpal/src/main/resources/assets/node_modules/contextify/.node-gyp"
make: Entering directory /home/airpal/src/main/resources/assets/node_modules/contextify/build' CXX(target) Release/obj.target/contextify/src/contextify.o SOLINK_MODULE(target) Release/obj.target/contextify.node SOLINK_MODULE(target) Release/obj.target/contextify.node: Finished COPY Release/contextify.node make: Leaving directory/home/airpal/src/main/resources/assets/node_modules/contextify/build'
npm WARN prefer global [email protected] should be installed with -g
[email protected] install /home/airpal/src/main/resources/assets/node_modules/utf-8-validate node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.33"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/airpal/src/main/resources/assets/node_modules/utf-8-validate/.node-gyp"
make: Entering directory /home/airpal/src/main/resources/assets/node_modules/utf-8-validate/build' CXX(target) Release/obj.target/validation/src/validation.o SOLINK_MODULE(target) Release/obj.target/validation.node SOLINK_MODULE(target) Release/obj.target/validation.node: Finished COPY Release/validation.node make: Leaving directory/home/airpal/src/main/resources/assets/node_modules/utf-8-validate/build'
:buildAssets
[21:53:08] Using gulpfile /home/airpal/src/main/resources/assets/gulpfile.js
[21:53:08] Starting 'browserify'...
[21:53:08] Bundling app.js...
[21:53:08] Bundling plugin.js...
[21:53:16] Bundled plugin.js in 7.6 s
[21:53:27] Bundled app.js in 18 s
[21:53:27] Finished 'browserify' after 18 s
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.7
/home/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
/home/airpal/src/main/java/com/airbnb/airlift/http/client/OldJettyHttpClient.java:66: error: cannot find symbol
implements AsyncHttpClient
^
symbol: class AsyncHttpClient
/home/airpal/src/main/java/com/airbnb/airlift/http/client/OldJettyHttpClient.java:227: error: cannot find symbol
public <T, E extends Exception> HttpResponseFuture<T> executeAsync(Request request, ResponseHandler<T, E> responseHandler)
^
symbol: class HttpResponseFuture
location: class OldJettyHttpClient
/home/airpal/src/main/java/com/airbnb/airlift/http/client/OldJettyHttpClient.java:381: error: cannot find symbol
implements HttpResponseFuture<T>
^
symbol: class HttpResponseFuture
location: class OldJettyHttpClient
/home/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;
^
/home/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
/home/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
/home/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
/home/airpal/src/main/java/com/airbnb/airpal/presto/QueryRunner.java:21: error: cannot find symbol
protected QueryRunner(ClientSession session, JsonCodec<QueryResults> queryResultsCodec, AsyncHttpClient httpClient)
^
symbol: class AsyncHttpClient
location: class QueryRunner
/home/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
/home/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
/home/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
/home/airpal/src/main/java/com/airbnb/airpal/presto/QueryInfoClient.java:42: error: cannot find symbol
public QueryInfoClient(AsyncHttpClient httpClient, JsonCodec<BasicQueryInfo> queryInfoCodec)
^
symbol: class AsyncHttpClient
location: class QueryInfoClient
/home/airpal/src/main/java/com/airbnb/airpal/modules/AirpalModule.java:57: error: cannot find symbol
import io.airlift.http.client.AsyncHttpClient;
^
symbol: class AsyncHttpClient
location: package io.airlift.http.client
/home/airpal/src/main/java/com/airbnb/airpal/modules/AirpalModule.java:139: error: cannot find symbol
public AsyncHttpClient provideQueryRunnerHttpClient()
^
symbol: class AsyncHttpClient
location: class AirpalModule
/home/airpal/src/main/java/com/airbnb/airpal/modules/AirpalModule.java:175: error: cannot find symbol
@Named("query-runner-http-client") AsyncHttpClient httpClient)
^
symbol: class AsyncHttpClient
location: class AirpalModule
16 errors
:compileJava FAILED
FAILURE: Build failed with an exception.
-
What went wrong: Execution failed for task ':compileJava'.
Compilation failed; see the compiler error output for details.
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 47.727 secs
I was able to get around a similar error by not specifying the prestoVersion. Not sure if it will work but you may want to try it.
Try this: sudo ./gradlew clean shadowJar
Yup that works for me but when I go to the next step to specify the presto version its fails.
Are you saying the build did not work? After the build, the next two steps are create mysql database and setup reference.yml. After that you do the migrate database step. Which step is failing?
I did the following 1-./gradlew clean shadowJar -Dairpal.useLocalNode this was sucessfull
Do I need to run the following one ./gradlew -Dairpal.prestoVersion=0.85 (when running this is failing )clean shadowJar or go to the next step creating the SQL database.
If you have node and npm install locally that should be fine and you can go to next step.
Cool.Then I will try and update you if I am successful.
I followed the steps but when I open the browser I just get blank screen

I'm going to guess that your issue is a misconfiguration in reference.yml. I got it working in my environment tonight and all my issues involved not setting up reference.yml and connectivity with my EMR cluster. My other suggestion is to make sure you can connect with presto-cli tool first. I also had some misconfigurations in my config files for presto.
@kyleburke I tried number of times but I get a blank page when I open the UI.I would appreciate if you can share what you have done with the configurations.
Also when you say "make sure you can connect with presto-cli tool first " Do you mean to test it on the EMR cluster ,If that the case I am able to run connect and run some sample queries from presto cli on EMR.
I had same issue if I specify -Dairpal.prestoVersion=0.138
Getting blank screen after running Airpal . Please suggest steps to resolve this .

PFA my reference.yml file

@surendraGaddam99 try this branch: https://github.com/pubnative/airpal/tree/devel
Hi ,
What things needs to be installed and configured as part of PrestoDB for running Airpal application.
Thanks Surendra
@surendraGaddam99 I got the same issues. Did you solve this problem?
Hi,
I am also facing same error.. the BUILD SUCCESSFUL when i ran without presto versio. Not sure how it will work further.
@akalakoti I suggest to use Metabase or Redash instead of airpal.