Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

Fix shell arguments #743

Merged
merged 2 commits into from
Oct 17, 2016
Merged

Fix shell arguments #743

merged 2 commits into from
Oct 17, 2016

Conversation

jjlopezm
Copy link
Contributor

Description

This PR solves the problem with the arguments of the Basic Shell script. It is possible to add to the basic shell two arguments:
--user username
--http true/false


type OptionMap = Map[String, Any]

def nextOption(map : OptionMap, list: List[String]) : OptionMap = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@coveralls
Copy link

Coverage Status

Coverage remained the same at 49.238% when pulling d60f500 on jjlopezm:shellArgs into 22bdb21 on Stratio:master.

@hdominguez-stratio hdominguez-stratio merged commit 3a508e8 into Stratio:master Oct 17, 2016
pmadrigal added a commit that referenced this pull request Oct 27, 2016
* separate driver API from its implementation

* optimize imports

* minor changes

* client http skeleton

* fix wrong if statement to decide if the driver is http

* Http endpoint (#662)

* First successful attemps to serve queries through HTTP
* json4s row & row with schema serializer-deserializer
* json4s CommandSerializer
* json4s SQLResult serializer.
* Changed json4s StructType serializer in otder to return nested json objects instead their string representations.
* Asynchronous JSON results served by the HTTP query endpoint.

* minor changes

* use crossdata common serializer

* add TODOs

* move akka http json4s to common

* restore struct type deserializer

* comment unfinished driver methods to make the project compile

* refactor dependencies to make core depends on common

* Fixed json4-jackson dependency version conflict

* Code & comments cleaning

* Removed requester from the identifier of tasks as session id & query id fully determine a job.

* minor changes

* Typo fix

* Sessions keep alive end point

* Added session management commands to Command serializer

* First working with session http server

* Bug fix, When a session is not found and this way an error result is returned, it should be wrapped by a SQLReplay object

* Now, it is possible to answer to commands requireing no response. `CloseSessionCommand` is the first of its kind.

* Improve SQLResponse error management.

* Removed SQLResult wrong constraint at de-serializarion

* End to End http communication using HTTP driver.

* Changed default driver implementation (Cluster client) to HTTP implementation

* Row arrays are now de-serialized as Scala's wrapped arrays.

* Unfinished HTTP request for cluster state query

* Added sorted set serializer so it is now possible to serialize ClusterMemberState

* Added dual session generation interface: ClusterClient/HTTP

* Simplification of the way driver underlying technology is setted

* Dual driver tests (throught ClusterClient & HTTP).

* Base and licenses

* First server version

* Client configuration

* Client with configuration

* Certificates

* Licenses

* Invalid TLS certificate detected

* Certification tests

* Better traces on exceptions

* Added to Crossdata shell options

* TLS Test changes according to latest adavances in the feature/akkaHttp branch

* Certificate to localhost

* Certificate to localhost

* Encapsulation for KeyStore

* Corrections by @pfcoperez. Thank yougit add .!

* Http polishing (#714)

* Only recoverable errors should be managed by the SQL result.

* Removed duplicated serializer.

* Extracted fields label to a constants object

* Added FiniteDurationSerialized and use it to cover all SQLCommand serializtion cases.

* Improved code readability

* Fixed bug which kept session beacons open after session closing failures.

* Repackaged and simplified TLSInvalidAuthException

* Bug Fix, In query cancellation at server

* Improved code re-utilization and comments

* Added Java compatible Driver factories' getters

* [CROSSDATA] [SHELL] Argument added for using http driver

* License header added

* Minor change

* Compilation error fixed

* Update TLSAuthInvalidCertificateIT.scala

* Update TLSAuthValidCertificateIT.scala

* [CROSSDATA-693] Fix session provider configuration: core-config is not being read (#715)

* allow to set security manager by env_var
* [security-manager] fix allTableResources name
* fix session provider config bug: core config is not being read

* HTTP Cancellation (#725)

* Cancel query command serializer

* Added debugging UDF aimed to delay queries executions by an arbitrary time interval.

* Bug Fix: Right cancellation management at server side.

* Improved query cancellation interface & implementation for HTTP Driver.

* Added RequestId to the path in order to for separated low level streams as request servers.

* Ignored cancellation tests

* CHANGELOG updated.

* make request execution timeout configurable (#723)

* keep Authentication private (#721)

* [CROSSDATA-672] Allow (and ignore) columns in create view

* [CROSSDATA-672][testsAT]Remove ignore aspect from acceptance test (#727)

* [CROSSDATA-692] Fix cache commands required permissions (#718)

* [CROSSDATA-692][Test] Check basic operations permissions  (#728)

* HTTP Config refactor and clusterization under the same group. (#731)

Now, host and port will be the same no matter whether HTTPS is enable or not.

* [JENKINS] Remove Spark from IT Services (#729)

* [CROSSDATA-554] ServiceDiscovery to other class (#730)

* Update driver config (#734)

* Added HTTP host-port setter, udpated Driver labels object

* Added driver factory methods receiving HTTP host & port.

* Set `CROSSDATA_SERVER_CONFIG_HTTP_SERVER_PORT` when external (to PaaS) requests are served through HTTP/S

* Fix docker entry point to enable akka http (#738)

* fix docker entryPoint to enable akka http

* fix missing HAPROXY_0_PORT

* [JAVA DRIVER][API] Add akka http constructors (#741)

* sync application configuration with new reference options
* [java driver] add http constructors

* fix reference conflicts (#742)

* Fix shell arguments (#743)

* Add security.manager.enabled configuration (#744)

* server should not run if the security manager is enabled and fails while initializing

* [RELEASE] Prepare for next development iteration

* Fix problem with count distinct

* Test with qualified filter

* Reformat license

* Added to driverConf the methods for SSL (#749)

* Reformat license to Apache Spark license

* native buildScan added

* some native test added

* method created to convert SQL type to sparkSQL type

* postgresql query processor created

* commented code deleted

* AND & OR filters modified

* test IT for native query with filters

* [CROSSDATA-717] Support cross join statements (#748)

* [CROSSDATA-807] Create table if not exists (#752)

* Tests and if not exists

* Using other name

* Fixed test

* Added timeout for shell (#751)

* Removed entries that are not used (#746)

* [CROSSDATA-729] Tests for lack of support for subqueries in filter (#750) (#753)

* TODO and unnecessary log deleted

* crossdata version updated in postgresql pom
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants