项目作者: MineriaForetell

项目描述 :
ExecuteShellWithJava allows you to integrate Shell scripting to execute command from terminal automatically. (Ubuntu)
高级语言: Java
项目地址: git://github.com/MineriaForetell/ExecuteShellWithJava.git
创建时间: 2017-03-10T20:25:49Z
项目社区:https://github.com/MineriaForetell/ExecuteShellWithJava

开源协议:

下载


ExecuteShellWithJava

ExecuteShellWithJava allows you to integrate Shell scripting to execute command from terminal automatically. (Ubuntu)

Understand File structure, purpose and use

File Structure

  1. ExecuteShellWithJava
  2. build.xml
  3. README.md
  4. ├───build //the project folder hold the compiled classes, meta information, test cases, and distribution folder.
  5. |
  6. ├───nbproject // Contains all the netbeans metadata about your project. When you go Project -> properties all the settings (and others) that you find there are stored in the nbProjects folder.
  7. ant-deploy.xml
  8. build-impl.xml
  9. genfiles.properties
  10. project.properties
  11. project.xml
  12. └───private
  13. private.properties
  14. private.xml
  15. ├───src // The source folder only contains your source code
  16. ├───conf
  17. MANIFEST.MF
  18. └───java // src contains java code
  19. └───myPkg // package named as a myPkg
  20. FileGeneratorMain.java
  21. HadoopProcessingClass.java
  22. ProcessData.java
  23. └───web // Contains web pages like html,jsp,css,js,(assets ... etc.)
  24. index.html //PURPOSE : General HTML page contains two buttons. (1) Start hadoop (2) Process data
  25. script.js //Asynchronous call to start hadoop using terminal (No need to write command on a terminal, it will automatically managed by this script)
  26. ├───META-INF // Contains meta data about the contents of the JAR or main class
  27. context.xml // contains a "Context" tag (Context Fragment) for a single Tomcat web application. This can be used to define certain behaviours for your application, JNDI resources and other settings.
  28. └───WEB-INF // Contains resources pertaining to the Web application including a web.xml file. Also contained a deployment descriptor file, called web.xml
  29. web.xml // Contains welcome file, servlet and servlet mapping

How to run ExecuteShellWithJava

  1. Open terminal in backside. (Its require)
  2. Run netbeans project using tomcat or glassfish server.
  3. You can see two buttons, Start hadoop and process data.
  • You will get success message if hadoop started successfully and so another button “Process data” will be visible. [disabled = false]
  1. If your mentioned path have required files, it will start uploading and process the data as per your algorithm.

Conclusion


Hence, you can integrate this project with java-hadoop, where you want to call any command from terminal. [For Bigdata, hadoop is more preferable and it gives best performance in ubuntu]

If you have any Query contact me!