- Base url is
http://localhost:8080/cloudproject
. - GET request on
/api/test
: Returns a page displaying Hello World!. Useful for testing if the API is live - POST request on
/api/query
: Request body should be inapplication/json
format.- Input Parameter : query (String) -> the SQL query to be run
- Output : application.json containing the required output parameters.
Global configuration file: com.project.cloud.Globals
- This file contains HDFS output paths, which can be configured.
- Maven project file for build settings and dependencies.
- The project, built into a webapp has been tested on tomcat8.5.
- It may be required to configure the amount of memory allocated to Tomcat JVM.
<Condition2>
of theWHERE
clause inINNER JOIN
query is assumed to be an equality operation in one of the columns of the final table.<COLUMNS>
ofSELECT
andGROUP BY
have been assumed to be the same.- Input value of any Aggregate Function, and the value against which it is compared in
HAVING
clause is assumed to be integer.