ambari-presto-service icon indicating copy to clipboard operation
ambari-presto-service copied to clipboard

add Ubuntu support

Open jakovm opened this issue 8 years ago • 8 comments

Hello, thank you for your great work! Is it possilbe to add Ubuntu support?

jakovm avatar Apr 08 '16 13:04 jakovm

Given that Presto runs on Ubuntu it shouldn't be too difficult to add that support. However, I'm afraid that work isn't on our current roadmap.

petroav avatar Apr 08 '16 14:04 petroav

Hi @jakovm, thank you! As Anton said, we don't have any near term plans for it. But we welcome contributions if it's something you want to work on. We'd be happy to provide guidance.

mattsfuller avatar Apr 08 '16 14:04 mattsfuller

Hi @mattsfuller, I would be happy to help here. Since I'm pretty new to programming I would need guidance. So what I need to do add ubuntu support?

jakovm avatar Apr 08 '16 15:04 jakovm

@jakovm -- if you're new to programming then this may not be a good place for you to start. Even though the programming needed to complete this task is trivial, figuring out how all the pieces fit together is hard.

If you'd still like to attempt the task then you'll need to edit the scripts in package/scripts. Specifically you'll have to change (1) the way we install Presto and (2) the way we configure Presto.

(1) should just be a matter of downloading the tar.gz distribution of Presto and unpacking it. You'll have to somehow detect whether you're running on Ubuntu and switch to the tar.gz based on that. The installation happens in the install() method for both the coordinator and workers. (2) is a little more complicated because the configuration files will now have different paths because we didn't install Presto using the rpm.

Finally, you should test your changes on an Ubuntu cluster and write some unit tests. For unit testing I had to do some hacking because the resource_management package from Ambari is not available as standalone. To get around that I created a dummy package in the same directory as my tests, modified the PYTHONPATH and then mocked all the objects I needed to mock.

Before you start coding you should familiarize yourself with Ambari's architecture by watching the two Ambari webinars here. The Ambari Operations webinar is not very relevant to this task but will give you an introduction on some of the features. The Ambari Stacks and Views webinar is very relevant. For examples on other integration code you can check out these Ambari workshops.

petroav avatar Apr 08 '16 19:04 petroav

Hi @petroav thanks for the instructions. Will try to get it done, but will probably take some time...

jakovm avatar Apr 08 '16 22:04 jakovm

Hey @petroav , @jakovm Any updates on this card. @jakovm Are you still working on this??

mrveera avatar May 19 '18 05:05 mrveera

I don't believe anyone is working on this at the moment. We'd love to have other contribute.

mattsfuller avatar May 21 '18 01:05 mattsfuller

I can work on it but I need some context about installing and adding configuration

mrveera avatar May 21 '18 13:05 mrveera