You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aurora.apache.org by Takao Magoori <ma...@magomago.jp> on 2015/02/13 03:08:27 UTC

Installing aurora problem

Hi,

I am newbie of aurora and I have 2 questions.


Question 1. Make error
When I tried to install it, an error of making thrift happened.

---- Environment
Archlinux (kernel: 3.18.6-1-ARCH, glibc: 2.21)


- Error
--------------------
# archlinux-java set java-7-openjdk    # It seems installing Aurora
fails on Java-8 environment.
$ git clone http://git-wip-us.apache.org/repos/asf/incubator-aurora.git
$ cd incubator-aurora
$ ./gradlew distZip
...
/bin/sh ../../libtool --tag=CXX   --mode=link g++ -Wall -g -O2   -o
thrift thrift-main.o thrift-md5.o thrift-t_generator.o thrift-parse.o
thrift-t_c_glib_generator.o thrift-t_cpp_generator.o
thrift-t_java_generator.o thrift-t_as3_generator.o
thrift-t_csharp_generator.o thrift-t_py_generator.o
thrift-t_rb_generator.o thrift-t_perl_generator.o
thrift-t_php_generator.o thrift-t_erl_generator.o
thrift-t_cocoa_generator.o thrift-t_st_generator.o
thrift-t_ocaml_generator.o thrift-t_hs_generator.o
thrift-t_xsd_generator.o thrift-t_html_generator.o
thrift-t_js_generator.o thrift-t_javame_generator.o
thrift-t_delphi_generator.o thrift-t_go_generator.o
thrift-t_gv_generator.o thrift-t_d_generator.o -lfl libparse.a
libtool: link: g++ -Wall -g -O2 -o thrift thrift-main.o thrift-md5.o
thrift-t_generator.o thrift-parse.o thrift-t_c_glib_generator.o
thrift-t_cpp_generator.o thrift-t_java_generator.o
thrift-t_as3_generator.o thrift-t_csharp_generator.o
thrift-t_py_generator.o thrift-t_rb_generator.o
thrift-t_perl_generator.o thrift-t_php_generator.o
thrift-t_erl_generator.o thrift-t_cocoa_generator.o
thrift-t_st_generator.o thrift-t_ocaml_generator.o
thrift-t_hs_generator.o thrift-t_xsd_generator.o
thrift-t_html_generator.o thrift-t_js_generator.o
thrift-t_javame_generator.o thrift-t_delphi_generator.o
thrift-t_go_generator.o thrift-t_gv_generator.o thrift-t_d_generator.o
 -lfl libparse.a
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib/libfl.so:
undefined reference to `yylex'
collect2: error: ld returned 1 exit status
Makefile:507: recipe for target 'thrift' failed
make[4]: Leaving directory
'/incubator-aurora/build-support/thrift/thrift-0.9.1/compiler/cpp'
Makefile:417: recipe for target 'all' failed
make[3]: Leaving directory
'/incubator-aurora/build-support/thrift/thrift-0.9.1/compiler/cpp'
make[4]: *** [thrift] Error 1
make[3]: *** [all] Error 2
Makefile:434: recipe for target 'all-recursive' failed
make[2]: Leaving directory '/incubator-aurora/build-support/thrift/thrift-0.9.1'
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
Makefile:355: recipe for target 'all' failed
make[1]: Leaving directory '/incubator-aurora/build-support/thrift/thrift-0.9.1'
Makefile:42: recipe for target 'thrift-0.9.1/compiler/cpp/thrift' failed
make: Leaving directory '/incubator-aurora/build-support/thrift'
make: *** [thrift-0.9.1/compiler/cpp/thrift] Error 2
:api:generateThriftJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':api:generateThriftJava'.
> Process 'command '/incubator-aurora/build-support/thrift/thriftw'' finished with non-zero exit value 2

* Try:
Run with --stacktrace option to get the stack trace. Run with --info
or --debug option to get more log output.

BUILD FAILED
--------------------


- My opinion
It seems a problem of Thrift 0.9.1.
https://issues.apache.org/jira/browse/THRIFT-2386

If I changed the thrift version to 0.9.2 in aurora source files,
installing aurora was successfully done.
--------------------
# archlinux-java set java-7-openjdk    # It seems Aurora does not
support Java-8.
$ git clone http://git-wip-us.apache.org/repos/asf/incubator-aurora.git
$ cd incubator-aurora
$ sed --in-place -e 's/0\.9\.1/0.9.2/g'
./3rdparty/javascript/scheduler/assets/js/thrift.js
$ sed --in-place -e 's/0\.9\.1/0.9.2/g' ./3rdparty/python/requirements.txt
$ sed --in-place -e 's/0\.9\.1/0.9.2/g' ./build-support/thrift/Makefile
$ sed --in-place -e 's/0\.9\.1/0.9.2/g' ./build.gradle
$ sed --in-place -e 's/0\.9\.1/0.9.2/g'
./examples/vagrant/provision-dev-cluster.sh
$ sed --in-place -e
's/\/thrift\/0\.9\.2\/contrib\/deb\/ubuntu\/12\.04\//\/thrift\/0.9.2\/contrib\/ubuntu\//g'
./examples/vagrant/provision-dev-cluster.sh
$ ./gradlew distZip

Currently, it seems OK. But is there any plan to bump up the thrift
version to its latest stable version "0.9.2" ?


Question 2. Community for questions
One more question is about community for questions (newbies).
When I want to ask the above problem to someone, I could not find the
best community. Where is it ?
It is troublesome for me to search an answer from developer mailing
list archives.

For example,
- google group
- github issue community
- stackoverflow


Anyway, I like Aurora more than Marathon, since it supports
Python-style flexible configuraion DSL (Great!) and fine-grained Task
controll.

Thanks.

----
Takao Magoori
mago@magomago.jp

Re: Installing aurora problem

Posted by Jake Farrell <jf...@apache.org>.
Hey Takao
Thanks for you interest in Apache Aurora.

1. yes, the latest version of Apache Thrift does address your issues you
are hitting. We will probably update to the latest version of Apache Thrift
soon, but the commands as you listed do miss some things. Patches welcome
if you are interested in creating a ticket and helping with this

2.  the dev@ list you just posted to is the best place to ask questions.
You can also search across all the mail archives at [1], which can make
finding things a little easier. You can also create tickets for issues on
our jira instance [2], or you can find us on freenode in #aurora

-Jake


[1]: http://markmail.org/search/?q=apache+aurora
[2]: https://issues.apache.org/jira/browse/aurora

On Thu, Feb 12, 2015 at 9:08 PM, Takao Magoori <ma...@magomago.jp> wrote:

> Hi,
>
> I am newbie of aurora and I have 2 questions.
>
>
> Question 1. Make error
> When I tried to install it, an error of making thrift happened.
>
> ---- Environment
> Archlinux (kernel: 3.18.6-1-ARCH, glibc: 2.21)
>
>
> - Error
> --------------------
> # archlinux-java set java-7-openjdk    # It seems installing Aurora
> fails on Java-8 environment.
> $ git clone http://git-wip-us.apache.org/repos/asf/incubator-aurora.git
> $ cd incubator-aurora
> $ ./gradlew distZip
> ...
> /bin/sh ../../libtool --tag=CXX   --mode=link g++ -Wall -g -O2   -o
> thrift thrift-main.o thrift-md5.o thrift-t_generator.o thrift-parse.o
> thrift-t_c_glib_generator.o thrift-t_cpp_generator.o
> thrift-t_java_generator.o thrift-t_as3_generator.o
> thrift-t_csharp_generator.o thrift-t_py_generator.o
> thrift-t_rb_generator.o thrift-t_perl_generator.o
> thrift-t_php_generator.o thrift-t_erl_generator.o
> thrift-t_cocoa_generator.o thrift-t_st_generator.o
> thrift-t_ocaml_generator.o thrift-t_hs_generator.o
> thrift-t_xsd_generator.o thrift-t_html_generator.o
> thrift-t_js_generator.o thrift-t_javame_generator.o
> thrift-t_delphi_generator.o thrift-t_go_generator.o
> thrift-t_gv_generator.o thrift-t_d_generator.o -lfl libparse.a
> libtool: link: g++ -Wall -g -O2 -o thrift thrift-main.o thrift-md5.o
> thrift-t_generator.o thrift-parse.o thrift-t_c_glib_generator.o
> thrift-t_cpp_generator.o thrift-t_java_generator.o
> thrift-t_as3_generator.o thrift-t_csharp_generator.o
> thrift-t_py_generator.o thrift-t_rb_generator.o
> thrift-t_perl_generator.o thrift-t_php_generator.o
> thrift-t_erl_generator.o thrift-t_cocoa_generator.o
> thrift-t_st_generator.o thrift-t_ocaml_generator.o
> thrift-t_hs_generator.o thrift-t_xsd_generator.o
> thrift-t_html_generator.o thrift-t_js_generator.o
> thrift-t_javame_generator.o thrift-t_delphi_generator.o
> thrift-t_go_generator.o thrift-t_gv_generator.o thrift-t_d_generator.o
>  -lfl libparse.a
> /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib/libfl.so:
> undefined reference to `yylex'
> collect2: error: ld returned 1 exit status
> Makefile:507: recipe for target 'thrift' failed
> make[4]: Leaving directory
> '/incubator-aurora/build-support/thrift/thrift-0.9.1/compiler/cpp'
> Makefile:417: recipe for target 'all' failed
> make[3]: Leaving directory
> '/incubator-aurora/build-support/thrift/thrift-0.9.1/compiler/cpp'
> make[4]: *** [thrift] Error 1
> make[3]: *** [all] Error 2
> Makefile:434: recipe for target 'all-recursive' failed
> make[2]: Leaving directory
> '/incubator-aurora/build-support/thrift/thrift-0.9.1'
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all] Error 2
> Makefile:355: recipe for target 'all' failed
> make[1]: Leaving directory
> '/incubator-aurora/build-support/thrift/thrift-0.9.1'
> Makefile:42: recipe for target 'thrift-0.9.1/compiler/cpp/thrift' failed
> make: Leaving directory '/incubator-aurora/build-support/thrift'
> make: *** [thrift-0.9.1/compiler/cpp/thrift] Error 2
> :api:generateThriftJava FAILED
>
> FAILURE: Build failed with an exception.
>
> * What went wrong:
> Execution failed for task ':api:generateThriftJava'.
> > Process 'command '/incubator-aurora/build-support/thrift/thriftw''
> finished with non-zero exit value 2
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info
> or --debug option to get more log output.
>
> BUILD FAILED
> --------------------
>
>
> - My opinion
> It seems a problem of Thrift 0.9.1.
> https://issues.apache.org/jira/browse/THRIFT-2386
>
> If I changed the thrift version to 0.9.2 in aurora source files,
> installing aurora was successfully done.
> --------------------
> # archlinux-java set java-7-openjdk    # It seems Aurora does not
> support Java-8.
> $ git clone http://git-wip-us.apache.org/repos/asf/incubator-aurora.git
> $ cd incubator-aurora
> $ sed --in-place -e 's/0\.9\.1/0.9.2/g'
> ./3rdparty/javascript/scheduler/assets/js/thrift.js
> $ sed --in-place -e 's/0\.9\.1/0.9.2/g' ./3rdparty/python/requirements.txt
> $ sed --in-place -e 's/0\.9\.1/0.9.2/g' ./build-support/thrift/Makefile
> $ sed --in-place -e 's/0\.9\.1/0.9.2/g' ./build.gradle
> $ sed --in-place -e 's/0\.9\.1/0.9.2/g'
> ./examples/vagrant/provision-dev-cluster.sh
> $ sed --in-place -e
>
> 's/\/thrift\/0\.9\.2\/contrib\/deb\/ubuntu\/12\.04\//\/thrift\/0.9.2\/contrib\/ubuntu\//g'
> ./examples/vagrant/provision-dev-cluster.sh
> $ ./gradlew distZip
>
> Currently, it seems OK. But is there any plan to bump up the thrift
> version to its latest stable version "0.9.2" ?
>
>
> Question 2. Community for questions
> One more question is about community for questions (newbies).
> When I want to ask the above problem to someone, I could not find the
> best community. Where is it ?
> It is troublesome for me to search an answer from developer mailing
> list archives.
>
> For example,
> - google group
> - github issue community
> - stackoverflow
>
>
> Anyway, I like Aurora more than Marathon, since it supports
> Python-style flexible configuraion DSL (Great!) and fine-grained Task
> controll.
>
> Thanks.
>
> ----
> Takao Magoori
> mago@magomago.jp
>