You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Halterman, Jonathan" <jo...@hp.com> on 2015/04/15 20:58:49 UTC
Ambari dev environment for OSX
Hi I wanted to setup a quick dev environment for Ambari, and it looks like
running ambari-server setup, via one of the Linux package installs, is
required. Is there any advice on setting up a dev environment outside of
Linux, such as on OS X? I started to approximate the steps that
ambari-server setup does, but I figured I¹d ask here to see what others are
doing.
Cheers,
Jonathan
Re: Ambari dev environment for OSX
Posted by "Halterman, Jonathan" <jo...@hp.com>.
Thanks for sharing the info!
On 4/18/15, 1:30 PM, "Jonathan Hurley" <jh...@hortonworks.com> wrote:
>Yes, as I mentioned you’d need to install postgres (or any of the other
>databases we support) on OSX. I used embedded postgres locally for
>testing. I have some scripts that initialize my database for me:
>
>echo 'Dropping old...'
>sudo -u postgresql psql password=password -f
>/foo/ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-DROP.sq
>l -v dbname="ambari"
>
>echo 'Creating new...'
>sudo -u postgres psql password=password -f
>/foo/ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.
>sql -v username="\"ambari-server\"" -v password=\'bigdata\' -v
>dbname=ambari
>
>
>> On Apr 18, 2015, at 2:58 PM, Luciano Resende <lu...@gmail.com>
>>wrote:
>>
>> Another approach is to use Docker (in OSX you have to use it with
>> boot2docker). But there is some information on how to accomplish this
>>at [1]
>>
>> [1] https://github.com/apache/ambari/tree/trunk/dev-support/docker
>>
>> On Fri, Apr 17, 2015 at 5:31 PM, Halterman, Jonathan <
>> jonathan.halterman@hp.com> wrote:
>>
>>> Thanks for the info. Running the server from the IDE or command line is
>>> fine for me. But aside from the initial install and overriding
>>>properties,
>>> it seems like there is some database setup that needs to be done -
>>>loading
>>> an initial schema, creating a user, role, etc. The schema file looks
>>>to be
>>> parameterized for loading via ambari-server.py which is one of the
>>>reasons
>>> I was hoping ambari-server.py could be made to work on OS X. Is there
>>>any
>>> reason it couldn¹t be, or do you have any pointers on the database
>>>setup?
>>>
>>> - jonathan
>>>
>>> On 4/16/15, 10:16 AM, "Jonathan Hurley" <jh...@hortonworks.com>
>>>wrote:
>>>
>>>> It is posible to run Ambari Server locally on OSX (I do), but there
>>>>are
>>>> drawbacks to this approach. You won¹t be able to bootstrap any of the
>>>> agents during cluster provisioning and the kerberos commands don¹t
>>>>work
>>>> with OSX¹s kerberos distro (heimdal).
>>>>
>>>> So, you¹ll need to still run agents on Linux and you¹ll need to
>>>>install
>>>> them manually and register them manually. You also can¹t use any of
>>>>the
>>>> python code on OSX, including ambari-server.py. So, you won¹t be
>>>> installing Ambari Server, you¹ll be running the Java class from your
>>>>IDE
>>>> directly.
>>>>
>>>> If you still want to run Ambari Server on OSX, then the process is
>>>>pretty
>>>> straightforward:
>>>> - Install postgres
>>>> - Load the source code in your IDE of choice
>>>> - Have your own ambari.properties and ensure to include it on the
>>>> classpath when launching from the IDE. This is probably the hardest
>>>>part
>>>> to setup since you¹ll need to override a ton of properties to get
>>>>Ambari
>>>> to start on OSX. Here are some examples:
>>>>
>>>> bootstrap.dir=/foo/dev/ambari/bootstrap
>>>>
>>>>bootstrap.script=/foo/src/ambari/ambari-server/src/main/python/bootstra
>>>>p.p
>>>> y
>>>>
>>>>bootstrap.setup_agent.script=/foo/src/ambari/ambari-server/src/main/pyt
>>>>hon
>>>> /setupAgent.py
>>>> bootstrap.master_host_name=192.168.64.1
>>>>
>>>> java.home=/usr/jdk64/jdk1.7.0_45
>>>> jdk.name=jdk-7u45-linux-x64.tar.gz
>>>>
>>>> resources.dir=/foo/dev/ambari/resources
>>>>
>>>> server.persistence.inMemory=false
>>>> server.os_family=redhat6
>>>> server.os_type=centos6
>>>>
>>>> # postgres
>>>> server.jdbc.database_name=ambari
>>>> server.jdbc.user.name=ambari-server
>>>>
>>>> server.version.file=/foo/dev/ambari/conf/version
>>>>
>>>> metadata.path=src/main/resources/stacks
>>>> security.server.keys_dir=/foo/dev/ambari/keystore
>>>> security.server.passphrase=DEV
>>>>
>>>>
>>>>shared.resources.dir=/foo/src/ambari/ambari-common/src/main/python/amba
>>>>ri_
>>>> commons/resources
>>>>
>>>>custom.action.definitions=/foo/src/ambari/ambari-server/src/main/resour
>>>>ces
>>>> /custom_action_definitions
>>>> recommendations.dir=/foo/dev/ambari/stack-recommendations
>>>>
>>>>stackadvisor.script=/foo/src/ambari/ambari-server/src/main/resources/sc
>>>>rip
>>>> ts/stack_advisor.py
>>>> webapp.dir=/foo/src/ambari/ambari-web/public
>>>> views.dir=/foo/dev/ambari/views
>>>>
>>>>common.services.path=/foo/src/ambari/ambari-server/src/main/resources/c
>>>>omm
>>>> on-services
>>>>
>>>>
>>>> On Apr 15, 2015, at 2:58 PM, Halterman, Jonathan
>>>> <jo...@hp.com>> wrote:
>>>>
>>>> Hi I wanted to setup a quick dev environment for Ambari, and it
>>>>looks
>>>> like running ambari-server setup, via one of the Linux package
>>>>installs,
>>>> is required. Is there any advice on setting up a dev environment
>>>>outside
>>>> of Linux, such as on OS X? I started to approximate the steps that
>>>> ambari-server setup does, but I figured I¹d ask here to see what
>>>>others
>>>> are doing.
>>>>
>>>> Cheers,
>>>> Jonathan
>>>>
>>>
>>
>>
>>
>> --
>> Luciano Resende
>> http://people.apache.org/~lresende
>> http://twitter.com/lresende1975
>> http://lresende.blogspot.com/
>
Re: Ambari dev environment for OSX
Posted by Jonathan Hurley <jh...@hortonworks.com>.
Yes, as I mentioned you’d need to install postgres (or any of the other databases we support) on OSX. I used embedded postgres locally for testing. I have some scripts that initialize my database for me:
echo 'Dropping old...'
sudo -u postgresql psql password=password -f /foo/ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-DROP.sql -v dbname="ambari"
echo 'Creating new...'
sudo -u postgres psql password=password -f /foo/ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql -v username="\"ambari-server\"" -v password=\'bigdata\' -v dbname=ambari
> On Apr 18, 2015, at 2:58 PM, Luciano Resende <lu...@gmail.com> wrote:
>
> Another approach is to use Docker (in OSX you have to use it with
> boot2docker). But there is some information on how to accomplish this at [1]
>
> [1] https://github.com/apache/ambari/tree/trunk/dev-support/docker
>
> On Fri, Apr 17, 2015 at 5:31 PM, Halterman, Jonathan <
> jonathan.halterman@hp.com> wrote:
>
>> Thanks for the info. Running the server from the IDE or command line is
>> fine for me. But aside from the initial install and overriding properties,
>> it seems like there is some database setup that needs to be done - loading
>> an initial schema, creating a user, role, etc. The schema file looks to be
>> parameterized for loading via ambari-server.py which is one of the reasons
>> I was hoping ambari-server.py could be made to work on OS X. Is there any
>> reason it couldn¹t be, or do you have any pointers on the database setup?
>>
>> - jonathan
>>
>> On 4/16/15, 10:16 AM, "Jonathan Hurley" <jh...@hortonworks.com> wrote:
>>
>>> It is posible to run Ambari Server locally on OSX (I do), but there are
>>> drawbacks to this approach. You won¹t be able to bootstrap any of the
>>> agents during cluster provisioning and the kerberos commands don¹t work
>>> with OSX¹s kerberos distro (heimdal).
>>>
>>> So, you¹ll need to still run agents on Linux and you¹ll need to install
>>> them manually and register them manually. You also can¹t use any of the
>>> python code on OSX, including ambari-server.py. So, you won¹t be
>>> installing Ambari Server, you¹ll be running the Java class from your IDE
>>> directly.
>>>
>>> If you still want to run Ambari Server on OSX, then the process is pretty
>>> straightforward:
>>> - Install postgres
>>> - Load the source code in your IDE of choice
>>> - Have your own ambari.properties and ensure to include it on the
>>> classpath when launching from the IDE. This is probably the hardest part
>>> to setup since you¹ll need to override a ton of properties to get Ambari
>>> to start on OSX. Here are some examples:
>>>
>>> bootstrap.dir=/foo/dev/ambari/bootstrap
>>> bootstrap.script=/foo/src/ambari/ambari-server/src/main/python/bootstrap.p
>>> y
>>> bootstrap.setup_agent.script=/foo/src/ambari/ambari-server/src/main/python
>>> /setupAgent.py
>>> bootstrap.master_host_name=192.168.64.1
>>>
>>> java.home=/usr/jdk64/jdk1.7.0_45
>>> jdk.name=jdk-7u45-linux-x64.tar.gz
>>>
>>> resources.dir=/foo/dev/ambari/resources
>>>
>>> server.persistence.inMemory=false
>>> server.os_family=redhat6
>>> server.os_type=centos6
>>>
>>> # postgres
>>> server.jdbc.database_name=ambari
>>> server.jdbc.user.name=ambari-server
>>>
>>> server.version.file=/foo/dev/ambari/conf/version
>>>
>>> metadata.path=src/main/resources/stacks
>>> security.server.keys_dir=/foo/dev/ambari/keystore
>>> security.server.passphrase=DEV
>>>
>>> shared.resources.dir=/foo/src/ambari/ambari-common/src/main/python/ambari_
>>> commons/resources
>>> custom.action.definitions=/foo/src/ambari/ambari-server/src/main/resources
>>> /custom_action_definitions
>>> recommendations.dir=/foo/dev/ambari/stack-recommendations
>>> stackadvisor.script=/foo/src/ambari/ambari-server/src/main/resources/scrip
>>> ts/stack_advisor.py
>>> webapp.dir=/foo/src/ambari/ambari-web/public
>>> views.dir=/foo/dev/ambari/views
>>> common.services.path=/foo/src/ambari/ambari-server/src/main/resources/comm
>>> on-services
>>>
>>>
>>> On Apr 15, 2015, at 2:58 PM, Halterman, Jonathan
>>> <jo...@hp.com>> wrote:
>>>
>>> Hi I wanted to setup a quick dev environment for Ambari, and it looks
>>> like running ambari-server setup, via one of the Linux package installs,
>>> is required. Is there any advice on setting up a dev environment outside
>>> of Linux, such as on OS X? I started to approximate the steps that
>>> ambari-server setup does, but I figured I¹d ask here to see what others
>>> are doing.
>>>
>>> Cheers,
>>> Jonathan
>>>
>>
>
>
>
> --
> Luciano Resende
> http://people.apache.org/~lresende
> http://twitter.com/lresende1975
> http://lresende.blogspot.com/
Re: Ambari dev environment for OSX
Posted by "Halterman, Jonathan" <jo...@hp.com>.
Thanks Luciano -
The current dockerfile is currently failing. I submitted a JIRA/patch to
at least fix the file, but even still the build fails for other reasons.
See the patch, which has been sitting for a bit:
https://issues.apache.org/jira/browse/AMBARI-10391
- jonathan
On 4/18/15, 11:58 AM, "Luciano Resende" <lu...@gmail.com> wrote:
>Another approach is to use Docker (in OSX you have to use it with
>boot2docker). But there is some information on how to accomplish this at
>[1]
>
>[1] https://github.com/apache/ambari/tree/trunk/dev-support/docker
>
>On Fri, Apr 17, 2015 at 5:31 PM, Halterman, Jonathan <
>jonathan.halterman@hp.com> wrote:
>
>> Thanks for the info. Running the server from the IDE or command line is
>> fine for me. But aside from the initial install and overriding
>>properties,
>> it seems like there is some database setup that needs to be done -
>>loading
>> an initial schema, creating a user, role, etc. The schema file looks to
>>be
>> parameterized for loading via ambari-server.py which is one of the
>>reasons
>> I was hoping ambari-server.py could be made to work on OS X. Is there
>>any
>> reason it couldn¹t be, or do you have any pointers on the database
>>setup?
>>
>> - jonathan
>>
>> On 4/16/15, 10:16 AM, "Jonathan Hurley" <jh...@hortonworks.com> wrote:
>>
>> >It is posible to run Ambari Server locally on OSX (I do), but there are
>> >drawbacks to this approach. You won¹t be able to bootstrap any of the
>> >agents during cluster provisioning and the kerberos commands don¹t work
>> >with OSX¹s kerberos distro (heimdal).
>> >
>> >So, you¹ll need to still run agents on Linux and you¹ll need to install
>> >them manually and register them manually. You also can¹t use any of the
>> >python code on OSX, including ambari-server.py. So, you won¹t be
>> >installing Ambari Server, you¹ll be running the Java class from your
>>IDE
>> >directly.
>> >
>> >If you still want to run Ambari Server on OSX, then the process is
>>pretty
>> >straightforward:
>> >- Install postgres
>> >- Load the source code in your IDE of choice
>> >- Have your own ambari.properties and ensure to include it on the
>> >classpath when launching from the IDE. This is probably the hardest
>>part
>> >to setup since you¹ll need to override a ton of properties to get
>>Ambari
>> >to start on OSX. Here are some examples:
>> >
>> >bootstrap.dir=/foo/dev/ambari/bootstrap
>>
>>>bootstrap.script=/foo/src/ambari/ambari-server/src/main/python/bootstrap
>>>.p
>> >y
>>
>>>bootstrap.setup_agent.script=/foo/src/ambari/ambari-server/src/main/pyth
>>>on
>> >/setupAgent.py
>> >bootstrap.master_host_name=192.168.64.1
>> >
>> >java.home=/usr/jdk64/jdk1.7.0_45
>> >jdk.name=jdk-7u45-linux-x64.tar.gz
>> >
>> >resources.dir=/foo/dev/ambari/resources
>> >
>> >server.persistence.inMemory=false
>> >server.os_family=redhat6
>> >server.os_type=centos6
>> >
>> ># postgres
>> >server.jdbc.database_name=ambari
>> >server.jdbc.user.name=ambari-server
>> >
>> >server.version.file=/foo/dev/ambari/conf/version
>> >
>> >metadata.path=src/main/resources/stacks
>> >security.server.keys_dir=/foo/dev/ambari/keystore
>> >security.server.passphrase=DEV
>> >
>>
>>>shared.resources.dir=/foo/src/ambari/ambari-common/src/main/python/ambar
>>>i_
>> >commons/resources
>>
>>>custom.action.definitions=/foo/src/ambari/ambari-server/src/main/resourc
>>>es
>> >/custom_action_definitions
>> >recommendations.dir=/foo/dev/ambari/stack-recommendations
>>
>>>stackadvisor.script=/foo/src/ambari/ambari-server/src/main/resources/scr
>>>ip
>> >ts/stack_advisor.py
>> >webapp.dir=/foo/src/ambari/ambari-web/public
>> >views.dir=/foo/dev/ambari/views
>>
>>>common.services.path=/foo/src/ambari/ambari-server/src/main/resources/co
>>>mm
>> >on-services
>> >
>> >
>> >On Apr 15, 2015, at 2:58 PM, Halterman, Jonathan
>> ><jo...@hp.com>> wrote:
>> >
>> >Hi I wanted to setup a quick dev environment for Ambari, and it looks
>> >like running ambari-server setup, via one of the Linux package
>>installs,
>> >is required. Is there any advice on setting up a dev environment
>>outside
>> >of Linux, such as on OS X? I started to approximate the steps that
>> >ambari-server setup does, but I figured I¹d ask here to see what others
>> >are doing.
>> >
>> >Cheers,
>> >Jonathan
>> >
>>
>
>
>
>--
>Luciano Resende
>http://people.apache.org/~lresende
>http://twitter.com/lresende1975
>http://lresende.blogspot.com/
Re: Ambari dev environment for OSX
Posted by Luciano Resende <lu...@gmail.com>.
Another approach is to use Docker (in OSX you have to use it with
boot2docker). But there is some information on how to accomplish this at [1]
[1] https://github.com/apache/ambari/tree/trunk/dev-support/docker
On Fri, Apr 17, 2015 at 5:31 PM, Halterman, Jonathan <
jonathan.halterman@hp.com> wrote:
> Thanks for the info. Running the server from the IDE or command line is
> fine for me. But aside from the initial install and overriding properties,
> it seems like there is some database setup that needs to be done - loading
> an initial schema, creating a user, role, etc. The schema file looks to be
> parameterized for loading via ambari-server.py which is one of the reasons
> I was hoping ambari-server.py could be made to work on OS X. Is there any
> reason it couldn¹t be, or do you have any pointers on the database setup?
>
> - jonathan
>
> On 4/16/15, 10:16 AM, "Jonathan Hurley" <jh...@hortonworks.com> wrote:
>
> >It is posible to run Ambari Server locally on OSX (I do), but there are
> >drawbacks to this approach. You won¹t be able to bootstrap any of the
> >agents during cluster provisioning and the kerberos commands don¹t work
> >with OSX¹s kerberos distro (heimdal).
> >
> >So, you¹ll need to still run agents on Linux and you¹ll need to install
> >them manually and register them manually. You also can¹t use any of the
> >python code on OSX, including ambari-server.py. So, you won¹t be
> >installing Ambari Server, you¹ll be running the Java class from your IDE
> >directly.
> >
> >If you still want to run Ambari Server on OSX, then the process is pretty
> >straightforward:
> >- Install postgres
> >- Load the source code in your IDE of choice
> >- Have your own ambari.properties and ensure to include it on the
> >classpath when launching from the IDE. This is probably the hardest part
> >to setup since you¹ll need to override a ton of properties to get Ambari
> >to start on OSX. Here are some examples:
> >
> >bootstrap.dir=/foo/dev/ambari/bootstrap
> >bootstrap.script=/foo/src/ambari/ambari-server/src/main/python/bootstrap.p
> >y
> >bootstrap.setup_agent.script=/foo/src/ambari/ambari-server/src/main/python
> >/setupAgent.py
> >bootstrap.master_host_name=192.168.64.1
> >
> >java.home=/usr/jdk64/jdk1.7.0_45
> >jdk.name=jdk-7u45-linux-x64.tar.gz
> >
> >resources.dir=/foo/dev/ambari/resources
> >
> >server.persistence.inMemory=false
> >server.os_family=redhat6
> >server.os_type=centos6
> >
> ># postgres
> >server.jdbc.database_name=ambari
> >server.jdbc.user.name=ambari-server
> >
> >server.version.file=/foo/dev/ambari/conf/version
> >
> >metadata.path=src/main/resources/stacks
> >security.server.keys_dir=/foo/dev/ambari/keystore
> >security.server.passphrase=DEV
> >
> >shared.resources.dir=/foo/src/ambari/ambari-common/src/main/python/ambari_
> >commons/resources
> >custom.action.definitions=/foo/src/ambari/ambari-server/src/main/resources
> >/custom_action_definitions
> >recommendations.dir=/foo/dev/ambari/stack-recommendations
> >stackadvisor.script=/foo/src/ambari/ambari-server/src/main/resources/scrip
> >ts/stack_advisor.py
> >webapp.dir=/foo/src/ambari/ambari-web/public
> >views.dir=/foo/dev/ambari/views
> >common.services.path=/foo/src/ambari/ambari-server/src/main/resources/comm
> >on-services
> >
> >
> >On Apr 15, 2015, at 2:58 PM, Halterman, Jonathan
> ><jo...@hp.com>> wrote:
> >
> >Hi I wanted to setup a quick dev environment for Ambari, and it looks
> >like running ambari-server setup, via one of the Linux package installs,
> >is required. Is there any advice on setting up a dev environment outside
> >of Linux, such as on OS X? I started to approximate the steps that
> >ambari-server setup does, but I figured I¹d ask here to see what others
> >are doing.
> >
> >Cheers,
> >Jonathan
> >
>
--
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/
Re: Ambari dev environment for OSX
Posted by "Halterman, Jonathan" <jo...@hp.com>.
Thanks for the info. Running the server from the IDE or command line is
fine for me. But aside from the initial install and overriding properties,
it seems like there is some database setup that needs to be done - loading
an initial schema, creating a user, role, etc. The schema file looks to be
parameterized for loading via ambari-server.py which is one of the reasons
I was hoping ambari-server.py could be made to work on OS X. Is there any
reason it couldn¹t be, or do you have any pointers on the database setup?
- jonathan
On 4/16/15, 10:16 AM, "Jonathan Hurley" <jh...@hortonworks.com> wrote:
>It is posible to run Ambari Server locally on OSX (I do), but there are
>drawbacks to this approach. You won¹t be able to bootstrap any of the
>agents during cluster provisioning and the kerberos commands don¹t work
>with OSX¹s kerberos distro (heimdal).
>
>So, you¹ll need to still run agents on Linux and you¹ll need to install
>them manually and register them manually. You also can¹t use any of the
>python code on OSX, including ambari-server.py. So, you won¹t be
>installing Ambari Server, you¹ll be running the Java class from your IDE
>directly.
>
>If you still want to run Ambari Server on OSX, then the process is pretty
>straightforward:
>- Install postgres
>- Load the source code in your IDE of choice
>- Have your own ambari.properties and ensure to include it on the
>classpath when launching from the IDE. This is probably the hardest part
>to setup since you¹ll need to override a ton of properties to get Ambari
>to start on OSX. Here are some examples:
>
>bootstrap.dir=/foo/dev/ambari/bootstrap
>bootstrap.script=/foo/src/ambari/ambari-server/src/main/python/bootstrap.p
>y
>bootstrap.setup_agent.script=/foo/src/ambari/ambari-server/src/main/python
>/setupAgent.py
>bootstrap.master_host_name=192.168.64.1
>
>java.home=/usr/jdk64/jdk1.7.0_45
>jdk.name=jdk-7u45-linux-x64.tar.gz
>
>resources.dir=/foo/dev/ambari/resources
>
>server.persistence.inMemory=false
>server.os_family=redhat6
>server.os_type=centos6
>
># postgres
>server.jdbc.database_name=ambari
>server.jdbc.user.name=ambari-server
>
>server.version.file=/foo/dev/ambari/conf/version
>
>metadata.path=src/main/resources/stacks
>security.server.keys_dir=/foo/dev/ambari/keystore
>security.server.passphrase=DEV
>
>shared.resources.dir=/foo/src/ambari/ambari-common/src/main/python/ambari_
>commons/resources
>custom.action.definitions=/foo/src/ambari/ambari-server/src/main/resources
>/custom_action_definitions
>recommendations.dir=/foo/dev/ambari/stack-recommendations
>stackadvisor.script=/foo/src/ambari/ambari-server/src/main/resources/scrip
>ts/stack_advisor.py
>webapp.dir=/foo/src/ambari/ambari-web/public
>views.dir=/foo/dev/ambari/views
>common.services.path=/foo/src/ambari/ambari-server/src/main/resources/comm
>on-services
>
>
>On Apr 15, 2015, at 2:58 PM, Halterman, Jonathan
><jo...@hp.com>> wrote:
>
>Hi I wanted to setup a quick dev environment for Ambari, and it looks
>like running ambari-server setup, via one of the Linux package installs,
>is required. Is there any advice on setting up a dev environment outside
>of Linux, such as on OS X? I started to approximate the steps that
>ambari-server setup does, but I figured I¹d ask here to see what others
>are doing.
>
>Cheers,
>Jonathan
>
Re: Ambari dev environment for OSX
Posted by Jonathan Hurley <jh...@hortonworks.com>.
It is posible to run Ambari Server locally on OSX (I do), but there are drawbacks to this approach. You won’t be able to bootstrap any of the agents during cluster provisioning and the kerberos commands don’t work with OSX’s kerberos distro (heimdal).
So, you’ll need to still run agents on Linux and you’ll need to install them manually and register them manually. You also can’t use any of the python code on OSX, including ambari-server.py. So, you won’t be installing Ambari Server, you’ll be running the Java class from your IDE directly.
If you still want to run Ambari Server on OSX, then the process is pretty straightforward:
- Install postgres
- Load the source code in your IDE of choice
- Have your own ambari.properties and ensure to include it on the classpath when launching from the IDE. This is probably the hardest part to setup since you’ll need to override a ton of properties to get Ambari to start on OSX. Here are some examples:
bootstrap.dir=/foo/dev/ambari/bootstrap
bootstrap.script=/foo/src/ambari/ambari-server/src/main/python/bootstrap.py
bootstrap.setup_agent.script=/foo/src/ambari/ambari-server/src/main/python/setupAgent.py
bootstrap.master_host_name=192.168.64.1
java.home=/usr/jdk64/jdk1.7.0_45
jdk.name=jdk-7u45-linux-x64.tar.gz
resources.dir=/foo/dev/ambari/resources
server.persistence.inMemory=false
server.os_family=redhat6
server.os_type=centos6
# postgres
server.jdbc.database_name=ambari
server.jdbc.user.name=ambari-server
server.version.file=/foo/dev/ambari/conf/version
metadata.path=src/main/resources/stacks
security.server.keys_dir=/foo/dev/ambari/keystore
security.server.passphrase=DEV
shared.resources.dir=/foo/src/ambari/ambari-common/src/main/python/ambari_commons/resources
custom.action.definitions=/foo/src/ambari/ambari-server/src/main/resources/custom_action_definitions
recommendations.dir=/foo/dev/ambari/stack-recommendations
stackadvisor.script=/foo/src/ambari/ambari-server/src/main/resources/scripts/stack_advisor.py
webapp.dir=/foo/src/ambari/ambari-web/public
views.dir=/foo/dev/ambari/views
common.services.path=/foo/src/ambari/ambari-server/src/main/resources/common-services
On Apr 15, 2015, at 2:58 PM, Halterman, Jonathan <jo...@hp.com>> wrote:
Hi – I wanted to setup a quick dev environment for Ambari, and it looks like running ambari-server setup, via one of the Linux package installs, is required. Is there any advice on setting up a dev environment outside of Linux, such as on OS X? I started to approximate the steps that ambari-server setup does, but I figured I’d ask here to see what others are doing.
Cheers,
Jonathan