[ 
https://issues.apache.org/jira/browse/PIO-25?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Donald Szeto resolved PIO-25.
-----------------------------
       Resolution: Fixed
    Fix Version/s: 0.11.0

> Don't attempt to start PostgreSQL when it's not being used
> ----------------------------------------------------------
>
>                 Key: PIO-25
>                 URL: https://issues.apache.org/jira/browse/PIO-25
>             Project: PredictionIO
>          Issue Type: Improvement
>            Reporter: David Jones
>            Priority: Trivial
>             Fix For: 0.11.0
>
>
> When running: {{pio-start-all}}, even if your {{pio-env.sh}} file is setup to 
> use HBase and not PostgreSQL you'll see "postgresql: unrecognised service":
> {quote}
>     Starting Elasticsearch...
>     Starting HBase...
>     starting master, logging to 
> /PredictionIO/vendors/hbase-1.2.2/bin/../logs/hbase--master-2898ebbfb9d1.out
>     postgresql: unrecognized service
>     Waiting 10 seconds for HBase to fully initialize...
>     Starting PredictionIO Event Server...
> {quote}
> This is because {{pio-start-all}} simply tries to detect if PostgreSQL is 
> running, if it isn't, then it will go ahead and try to start it:
> https://github.com/apache/incubator-predictionio/blob/develop/bin/pio-start-all#L64
> What would be better is if we checked 
> {{PIO_STORAGE_REPOSITORIES_METADATA_SOURCE}}, 
> {{PIO_STORAGE_REPOSITORIES_EVENTDATA_SOURCE}} and 
> {{PIO_STORAGE_REPOSITORIES_MODELDATA_SOURCE}} to see if any of those have 
> been set to {{PGSQL}}. If they have not been set to {{PGSQL}} then we don't 
> need to attempt to start PostgreSQL every time.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to