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" <[email protected]> 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
><[email protected]<mailto:[email protected]>> 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
>

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to