[GitHub] [zeppelin] martin-g commented on pull request #4238: ZEPPELIN-5543 Add CircleCI config to test on Linux ARM64

2021-10-05 Thread GitBox


martin-g commented on pull request #4238:
URL: https://github.com/apache/zeppelin/pull/4238#issuecomment-934303724


   Closing in favour of https://github.com/apache/zeppelin/pull/4243


-- 
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.

To unsubscribe, e-mail: dev-unsubscr...@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [zeppelin] martin-g commented on pull request #4238: ZEPPELIN-5543 Add CircleCI config to test on Linux ARM64

2021-10-04 Thread GitBox


martin-g commented on pull request #4238:
URL: https://github.com/apache/zeppelin/pull/4238#issuecomment-933466802


   > We can reactivate travis-ci for ARM builds as long as they are free.
   
   It is free! 
   I've already started reviving .travis.yml from `branch-0.9` 
(https://github.com/apache/zeppelin/compare/master...martin-g:use-travis-ci-for-linux-arm64?expand=1)
 and the builds do **not** consume my credits!
   
   I face some problems with the Conda packages though:
   ```
   +conda config --add channels conda-forge
   +conda install -q numpy=1.21.2 pandas=1.3.3 matplotlib=3.4.3 pandasql=0.7.3 
ipython=7.28.0 jupyter_client=5.3.4 ipykernel=6.4.1 bokeh=2.4.0
   Collecting package metadata (current_repodata.json): ...working... done
   Solving environment: ...working... failed with initial frozen solve. 
Retrying with flexible solve.
   Solving environment: ...working... failed with repodata from 
current_repodata.json, will retry with next repodata source.
   Collecting package metadata (repodata.json): ...working... done
   Solving environment: ...working... failed with initial frozen solve. 
Retrying with flexible solve.
   
   Found conflicts! Looking for incompatible packages.
   This can take several minutes.  Press CTRL-C to abort.
   failed
   UnsatisfiableError: The following specifications were found
   to be incompatible with the existing python installation in your environment:
   Specifications:
 - jupyter_client=5.3.4 -> 
python[version='>=3.6,<3.7.0a0|>=3.8,<3.9.0a0|>=3.7,<3.8.0a0']
 - pandasql=0.7.3 -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0']
   Your python: python=3.9
   ```
   
   There is only Miniconda **3** for Linux Aarch64!
   And I tried to use the latest versions of the packages at 
https://conda.anaconda.org/conda-forge/linux-aarch64/.
   But some packages have no versions for Python 3.9!
   Is there a way to pin Python to 3.8 ?
   


-- 
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.

To unsubscribe, e-mail: dev-unsubscr...@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [zeppelin] martin-g commented on pull request #4238: ZEPPELIN-5543 Add CircleCI config to test on Linux ARM64

2021-10-01 Thread GitBox


martin-g commented on pull request #4238:
URL: https://github.com/apache/zeppelin/pull/4238#issuecomment-931931489


   An update about TravisCI.
   Since recently their ARM64 nodes are absolutely free (0 credits!) - 
https://blog.travis-ci.com/2021-08-06-oss-equinix :
   ```
   This is is free to use for OSS (build minute costs zero credits if you run a 
build over your open source repository) as a part of our Partner Queue Solution.
   ```


-- 
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.

To unsubscribe, e-mail: dev-unsubscr...@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [zeppelin] martin-g commented on pull request #4238: ZEPPELIN-5543 Add CircleCI config to test on Linux ARM64

2021-09-30 Thread GitBox


martin-g commented on pull request #4238:
URL: https://github.com/apache/zeppelin/pull/4238#issuecomment-931296200


   I have tested [CircleCI](https://circleci.com/), 
[CirrusCI](https://cirrus-ci.org/) and [Drone.io](https://drone.io) - all of 
them ask for write permissions for the GitHub repo. Something that Apache Infra 
team does not allow!
   
   The next options are:
   - TravisCI - the problem with it is that there is a quota of free credits. 
Still somehow it works fine for many Apache projects: 
[Ranger](https://app.travis-ci.com/github/apache/ranger), 
[Tomcat](https://app.travis-ci.com/github/apache/tomcat), 
[Wicket](https://app.travis-ci.com/github/apache/wicket), 
[Parquet](https://app.travis-ci.com/github/apache/parquet-mr), ...
   - Apache Jenkins with a Linux ARM64 agent. I could help providing Linux 
ARM64 VM for the agent!
   - JFrog Artifactory Pipelines - this is something that Apache Infra team 
wants to explore more, but I have no experience with it yet.
   
   Any preferences ?


-- 
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.

To unsubscribe, e-mail: dev-unsubscr...@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [zeppelin] martin-g commented on pull request #4238: ZEPPELIN-5543 Add CircleCI config to test on Linux ARM64

2021-09-28 Thread GitBox


martin-g commented on pull request #4238:
URL: https://github.com/apache/zeppelin/pull/4238#issuecomment-928212605






-- 
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.

To unsubscribe, e-mail: dev-unsubscr...@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [zeppelin] martin-g commented on pull request #4238: ZEPPELIN-5543 Add CircleCI config to test on Linux ARM64

2021-09-28 Thread GitBox


martin-g commented on pull request #4238:
URL: https://github.com/apache/zeppelin/pull/4238#issuecomment-928960926


   What change should I do at 
https://github.com/apache/zeppelin/pull/4238/files#diff-78a8a19706dbd2a4425dd72bdab0502ed7a2cef16365ab7030a5a0588927bf47R58
 to fix it ?


-- 
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.

To unsubscribe, e-mail: dev-unsubscr...@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [zeppelin] martin-g commented on pull request #4238: ZEPPELIN-5543 Add CircleCI config to test on Linux ARM64

2021-09-28 Thread GitBox


martin-g commented on pull request #4238:
URL: https://github.com/apache/zeppelin/pull/4238#issuecomment-928957433


   >  SparkInterpreterLauncherTest
   
   ```
   circleci@ip-172-28-26-11:~/zeppelin$ ls -la interpreter/
   total 19952
   drwxrwxr-x  2 circleci circleci 4096 Sep 28 07:48 .
   drwxrwxr-x 84 circleci circleci 4096 Sep 28 08:03 ..
   -rw-rw-r--  1 circleci circleci 20422403 Sep 28 07:48 
zeppelin-interpreter-shaded-0.11.0-SNAPSHOT.jar
   ```
   
   There are no `spark-x.y` folders in the `interpreter/` folder. Any idea why ?


-- 
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.

To unsubscribe, e-mail: dev-unsubscr...@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [zeppelin] martin-g commented on pull request #4238: ZEPPELIN-5543 Add CircleCI config to test on Linux ARM64

2021-09-28 Thread GitBox


martin-g commented on pull request #4238:
URL: https://github.com/apache/zeppelin/pull/4238#issuecomment-928956302


   The credits at TravisCI are for the whole `apache` org. But yes, there are 
few projects which consume most of them - 
https://infra-reports.apache.org/cistats/. Those project have big job matrices 
there.
   At Apache Tomcat and Apache Wicket we have just 3-4 jobs (for all supported 
branches) and we never had issues with the credits. Only the build wait time is 
bigger than desired.
   Another way it to use a scheduled/cron job and run it just once per 
day/week, but this way there would be a feedback delay.
   
   I will contact CircleCI and ask them whether something could be done about 
the write access!


-- 
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.

To unsubscribe, e-mail: dev-unsubscr...@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [zeppelin] martin-g commented on pull request #4238: ZEPPELIN-5543 Add CircleCI config to test on Linux ARM64

2021-09-28 Thread GitBox


martin-g commented on pull request #4238:
URL: https://github.com/apache/zeppelin/pull/4238#issuecomment-928946699


   Bad news, it seems CircleCI requires write permissions to the repo and 
Apache Infra does not like this: 
https://issues.apache.org/jira/browse/INFRA-22367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17421230#comment-17421230
   
   Should I redo this PR to TravisCI ?


-- 
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.

To unsubscribe, e-mail: dev-unsubscr...@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [zeppelin] martin-g commented on pull request #4238: ZEPPELIN-5543 Add CircleCI config to test on Linux ARM64

2021-09-28 Thread GitBox


martin-g commented on pull request #4238:
URL: https://github.com/apache/zeppelin/pull/4238#issuecomment-928919100


   The new build at CircleCI failed due to:
   ```
   INFO [2021-09-28 06:53:04,243] ({main} 
DownloadUtils.java[runShellCommand]:136) - Starting shell commands: wget 
https://dlcdn.apache.org//spark/spark-2.4.4/spark-2.4.4-bin-hadoop2.7.tgz -P 
/home/circleci/.cache/spark
WARN [2021-09-28 06:53:04,401] ({main} DownloadUtils.java[download]:113) - 
Failed to download spark from mirror site, fallback to use apache archive
   java.io.IOException: Fail to run shell commands: wget 
https://dlcdn.apache.org//spark/spark-2.4.4/spark-2.4.4-bin-hadoop2.7.tgz -P 
/home/circleci/.cache/spark
at 
org.apache.zeppelin.interpreter.integration.DownloadUtils.runShellCommand(DownloadUtils.java:143)
at 
org.apache.zeppelin.interpreter.integration.DownloadUtils.download(DownloadUtils.java:110)
at 
org.apache.zeppelin.interpreter.integration.DownloadUtils.download(DownloadUtils.java:132)
at 
org.apache.zeppelin.interpreter.integration.DownloadUtils.downloadSpark(DownloadUtils.java:58)
at 
org.apache.zeppelin.interpreter.launcher.SparkInterpreterLauncherTest.setUp(SparkInterpreterLauncherTest.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   ...
   
   Tests run: 7, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 59.461 sec 
<<< FAILURE! - in 
org.apache.zeppelin.interpreter.launcher.SparkInterpreterLauncherTest
   
testYarnClusterMode_1(org.apache.zeppelin.interpreter.launcher.SparkInterpreterLauncherTest)
  Time elapsed: 0.642 sec  <<< ERROR!
   java.io.IOException: Fail to set additional jars for spark interpreter
at 
org.apache.zeppelin.interpreter.launcher.SparkInterpreterLauncher.buildEnvFromProperties(SparkInterpreterLauncher.java:139)
at 
org.apache.zeppelin.interpreter.launcher.StandardInterpreterLauncher.launchDirectly(StandardInterpreterLauncher.java:77)
at 
org.apache.zeppelin.interpreter.launcher.InterpreterLauncher.launch(InterpreterLauncher.java:110)
at 
org.apache.zeppelin.interpreter.launcher.SparkInterpreterLauncherTest.testYarnClusterMode_1(SparkInterpreterLauncherTest.java:194)
   ```
   
   https://dlcdn.apache.org//spark/spark-2.4.4/spark-2.4.4-bin-hadoop2.7.tgz 
gives 404.
   Why does it try to download Spark 2.4.4 when the active Maven profile is 
`-Pspark-3.0` ?


-- 
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.

To unsubscribe, e-mail: dev-unsubscr...@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [zeppelin] martin-g commented on pull request #4238: ZEPPELIN-5543 Add CircleCI config to test on Linux ARM64

2021-09-27 Thread GitBox


martin-g commented on pull request #4238:
URL: https://github.com/apache/zeppelin/pull/4238#issuecomment-928212605


   Test results could be seen at 
https://app.circleci.com/pipelines/github/martin-g/zeppelin?branch=zeppelin-5543-use-circle.ci-for-testing-on-linux-arm64
 (probably you need to be logged in into CircleCI to be able to see it!).
   
   @zjffdu You will need to enable this repo at CircleCI so that the build 
there appears as a `check` for each PR. To do this you need to login into 
CircleCI by using the `Login via GitHub` and then navigate to `Projects`and 
finally `Add project` (`apache/zeppelin`).
   
   Currently the build fails with:
   ```
   [ERROR] Failed to execute goal 
org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.0:compile (default) on 
project zeppelin-jupyter-interpreter: Missing:
   [ERROR] --
   [ERROR] 1) com.google.protobuf:protoc:exe:linux-aarch_64:3.3.0
   [ERROR] 
   [ERROR]   Try downloading the file manually from the project website.
   [ERROR] 
   [ERROR]   Then, install it using the command: 
   [ERROR]   mvn install:install-file -DgroupId=com.google.protobuf 
-DartifactId=protoc -Dversion=3.3.0 -Dclassifier=linux-aarch_64 -Dpackaging=exe 
-Dfile=/path/to/file
   [ERROR] 
   [ERROR]   Alternatively, if you host your own repository you can deploy the 
file there: 
   [ERROR]   mvn deploy:deploy-file -DgroupId=com.google.protobuf 
-DartifactId=protoc -Dversion=3.3.0 -Dclassifier=linux-aarch_64 -Dpackaging=exe 
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
   [ERROR] 
   [ERROR]   Path to dependency: 
   [ERROR]  1) 
org.apache.zeppelin:zeppelin-jupyter-interpreter:jar:0.11.0-SNAPSHOT
   [ERROR]  2) com.google.protobuf:protoc:exe:linux-aarch_64:3.3.0
   [ERROR] 
   [ERROR] --
   [ERROR] 1 required artifact is missing.
   [ERROR] 
   [ERROR] for artifact: 
   [ERROR]   
org.apache.zeppelin:zeppelin-jupyter-interpreter:jar:0.11.0-SNAPSHOT
   [ERROR] 
   [ERROR] from the specified remote repositories:
   [ERROR]   apache.snapshots (http://repository.apache.org/snapshots, 
releases=false, snapshots=true),
   [ERROR]   central (https://repo.maven.apache.org/maven2, releases=true, 
snapshots=false)
   [ERROR] -> [Help 1]
   [ERROR] 
   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   [ERROR] 
   [ERROR] For more information about the errors and possible solutions, please 
read the following articles:
   [ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
   [ERROR] 
   [ERROR] After correcting the problems, you can resume the build with the 
command
   [ERROR]   mvn  -rf :zeppelin-jupyter-interpreter
   
   Exited with code exit status 1
   ```
   Once https://github.com/apache/zeppelin/pull/4233 and 
https://github.com/apache/zeppelin/pull/4237 are merged the build should pass!


-- 
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.

To unsubscribe, e-mail: dev-unsubscr...@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org