How to use Cloud9 with Java and Heroku - java

I'm currently experimenting with the idea of having a full cloud development environment. I decided to go with Cloud9 IDE and deploy my app on Heroku while using GitHub to store my code. As Java is my most comfortable language, I'm adopting it for my app.
Now the Heroku tutorials use Maven for Java packaging. Is there any way I can replicate this in Cloud9, or can I skip the Maven altogether? Or must I manually put in all the pom files myself?
Note: I do intend to install Toolbelt on my local machine, but there will be times when I want to do coding when I'm not at home and don't have access to the local server. I'm more interested in knowing if it is possible to not have any dependence on a local machine at all.

Not at the moment as Cloud9 lacks build tools for Java. A thing called 'private RunVMs' will be launched in the next couple of weeks that allow you to install a Java build environment from within Cloud9; then deploying to Heroku would be possible for Java apps as well. Keep an eye on the blog for updates.
edit Cloud9 now has private VMs. It should be possible to install a java runtime in Cloud9 if you are on a premium plan now.

Related

Multiple applications and plugins for docker build?

So I am relatively new to Docker and I was wondering if there is a way with either docker-compose or cloud-cli to create a Java environment with different plugins and other software needed for an application?
For example, I would like to start with configuring Eclipse, Java, Tomcat, and Maven together as one environment natively. And if so could you explain and maybe show an example of how to do this? I am on a Windows 10 machine.
Thanks in advance.
You can totally do that using Docker-compose for java, tomcat and maven.
For eclipse it will be kinda problematic since it's a graphical application, but you still can do it using volumes.
You could also consider using Vagrant if it's for a development environment.

Ways to create a mapreduce web application

I want to create a website, and part of the website I will implemented with(Hadoop mapreduce). I start using the Eclipse with maven plugin, on my operating system (Mac OS).
I start coding with apache maven for my code. "I still not implement the website".
My question does the maven run with cluster of machines or not?
any advice of how can I create a website with part run in mapreduce??
Please help
Thanks all
Apahe Maven is not "something, that runs our code". It's actually a build tool: Apache Maven is a software project management and comprehension tool. (https://maven.apache.org/). You can manage dependencies, build, deploy and do other related stuff.
If you want some interface to your cluster, I recommend to look at zeppelin (https://zeppelin.apache.org/).
It's an interpreter for a bunch of stuff and it can be easily deployed to your server (I did it by building sources from https://github.com/apache/zeppelin and running it). Zeppelin's spark interpreter can be run in yarn-client mode, which just submits your code to cluster (yarn hadoop cluster in my case) and runs it.
Seems pretty similar to your description.
The answer to your question: maven had nothing to do with "running on cluster".

Automate process for creating environment

I heard of puppet and chef for creating the environment on the fly. But that is on big level.
I was thinking whenever a programmer gets new machine he has to install java, maven etc which are basic tools to start with for any Java/J2EE programmer. And for version of each tools- either it's latest version or as per project structure.
Is there any way to automate this file. Just like a bash file (on windows) or something which can install all these basic tools with desired version. Any hint to start with will be great.
Thank you.

Does having multiple instances of GAE SDK on your machine cause conflicts?

I would like to install both the Google-Eclipse plugin (which I believe also install the GAE SDK) for my Eclipse instance, so that I may take advantage of a lot of the IDE tools and features it comes with, and also so that I can run my app from inside Eclipse.
I would also like to install just the pure GAE SDK so that I can run my app outside of Eclipse on my regular system.
Because the GAE SDK is a diverse and complex beast, I am worried about having two instances of the GAE SDK installed on the same machine (setting conflicting ENV VARs, trying to open the same port number, etc.).
Obviously, I would take care to never be running the 2 GAE dev servers (1 that ships with the Eclipse plugin, and the other that ships with the pure SDK) at the same time, but that might not guarantee that I have 0 conflicts.
I would also be fine with just installing the Eclipse plugin if there was a way to configure the GAE SDK that it ships with to run both from Eclipse as well as the bash shell. That would probably be the easiest but I don't believe this is possible to do.
Any thoughts as to what my options are here? Thanks in advance!
You can do that by having a single SDK installed and using it for both Eclipse and also for bash shell.You can do that by following the steps below:
Download a Suitable GAE SDK from here and install it.
Open Eclipse and Select Help->Install new software.
In work with box enter the url as http://dl.google.com/eclipse/plugin/4.2 and from the list of available softwares select only "Google Plugin for Eclipse" software and select any other required plugin but not the SDKs. Keep it unchecked!
After installing the selected plugins, in Window->Preferences->Google->AppEngine click on add and then select the installation directory as the directory from step 1 and give a suitable name. Make it as default.
Now you are good to go.If you need to run from shell, invoke dev_appserver from the installation directory. Or if you want to run from from eclipse just run it from there.

deploying a java web project from local mac computer to linux server

I am wondering how I can quickly deploy the java dynamic web project that I built using eclipse on my mac to my Linode linux server? I already have a wordpress website running on the server and have also downloaded tomcat V6 and eclipse. Would I be able to manually copy the source, build and WebContent file contents? I would like to learn best practices for application deployment in the future but this project is very simple and I would like to be able to make it live as soon as possible. If you could also recommend any step by step tutorials I would really appreciate it.
thanks so much
Timnit
You should consider to build a WAR. Eclipse is just an IDE, it helps to develop, not to deploy.
Build your war (you can use maven/ant/build it from eclipse) - whatever you chose.
Once its ready your "deployment task" becomes a matter of moving a single file from MAC to linux server.
Use Cargo. See how easily it can be integrated with Maven build. Here is an excellent blog post.

Categories

Resources