You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@predictionio.apache.org by suyash kharade <su...@gmail.com> on 2018/01/21 11:14:03 UTC

Error while executing test of PIO

Hi guys,
    I was executing pio test. I am getting error as below

[WARN] [Storage$] There is no properly configured data source.
[WARN] [Storage$] There is no properly configured repository.
[ERROR] [Storage$] Required repository (METADATA) configuration is missing.
[ERROR] [Storage$] There were 1 configuration errors. Exiting.
[INFO] [ServerConnector] Stopped Spark@702bddeb{HTTP/1.1}{0.0.0.0:4040}

     I am working on develop branch.
     I dont find any logs for test. I tried exporting variables from
pio-env.sh.
     Can anybody help me with the issue ?
-- 
Regards,
Suyash K

Re: Error while executing test of PIO

Posted by suyash kharade <su...@gmail.com>.
# SPARK_HOME: Apache Spark is a hard dependency and must be configured.
# it is set up in script.travis.sh
SPARK_HOME=$SPARK_HOME

# Filesystem paths where PredictionIO uses as block storage.
PIO_FS_BASEDIR=$HOME/.pio_store
PIO_FS_ENGINESDIR=$PIO_FS_BASEDIR/engines
PIO_FS_TMPDIR=$PIO_FS_BASEDIR/tmp

# PredictionIO Storage Configuration
#
# This section controls programs that make use of PredictionIO's built-in
# storage facilities. Default values are shown below.

# Storage Data Sources
PIO_STORAGE_SOURCES_LOCALFS_TYPE=localfs
PIO_STORAGE_SOURCES_LOCALFS_PATH=$PIO_FS_BASEDIR/models

PIO_STORAGE_SOURCES_HBASE_TYPE=hbase
PIO_STORAGE_SOURCES_HBASE_HOME=$HBASE_HOME

# Storage Data Sources (pgsql)
PIO_STORAGE_SOURCES_PGSQL_TYPE=jdbc
PIO_STORAGE_SOURCES_PGSQL_URL=jdbc:postgresql:predictionio

PIO_STORAGE_SOURCES_PGSQL_USERNAME=postgres
PIO_STORAGE_SOURCES_PGSQL_PASSWORD=

# Storage Repositories
PIO_STORAGE_REPOSITORIES_METADATA_NAME=predictionio_metadata
PIO_STORAGE_REPOSITORIES_METADATA_SOURCE=PGSQL

PIO_STORAGE_REPOSITORIES_MODELDATA_NAME=predictionio_modeldata
PIO_STORAGE_REPOSITORIES_MODELDATA_SOURCE=PGSQL

PIO_STORAGE_REPOSITORIES_EVENTDATA_NAME=predictionio_eventdata
PIO_STORAGE_REPOSITORIES_EVENTDATA_SOURCE=PGSQL

It is giving error for METADATA and it is mentioned in pio-env.sh
If it is issue of DATA_SOURCE
Can you provide me necessary configs for DATA_SOURCE ?

On Mon, Jan 22, 2018 at 10:00 AM, Rajesh Jangid <ra...@grazitti.com>
wrote:

> Hi,
>     Can you share contents of your pio-env.sh file. I think you haven't
> declared property with name like *DATA_SOURCE*
>
> Thanks
> Rajesh
>
> On Sun, Jan 21, 2018 at 4:44 PM, suyash kharade <su...@gmail.com>
> wrote:
>
>> Hi guys,
>>     I was executing pio test. I am getting error as below
>>
>> [WARN] [Storage$] There is no properly configured data source.
>> [WARN] [Storage$] There is no properly configured repository.
>> [ERROR] [Storage$] Required repository (METADATA) configuration is
>> missing.
>> [ERROR] [Storage$] There were 1 configuration errors. Exiting.
>> [INFO] [ServerConnector] Stopped Spark@702bddeb{HTTP/1.1}{0.0.0.0:4040}
>>
>>      I am working on develop branch.
>>      I dont find any logs for test. I tried exporting variables from
>> pio-env.sh.
>>      Can anybody help me with the issue ?
>> --
>> Regards,
>> Suyash K
>>
>
>


-- 
Regards,
Suyash K

Re: Error while executing test of PIO

Posted by Rajesh Jangid <ra...@grazitti.com>.
Hi,
    Can you share contents of your pio-env.sh file. I think you haven't
declared property with name like *DATA_SOURCE*

Thanks
Rajesh

On Sun, Jan 21, 2018 at 4:44 PM, suyash kharade <su...@gmail.com>
wrote:

> Hi guys,
>     I was executing pio test. I am getting error as below
>
> [WARN] [Storage$] There is no properly configured data source.
> [WARN] [Storage$] There is no properly configured repository.
> [ERROR] [Storage$] Required repository (METADATA) configuration is missing.
> [ERROR] [Storage$] There were 1 configuration errors. Exiting.
> [INFO] [ServerConnector] Stopped Spark@702bddeb{HTTP/1.1}{0.0.0.0:4040}
>
>      I am working on develop branch.
>      I dont find any logs for test. I tried exporting variables from
> pio-env.sh.
>      Can anybody help me with the issue ?
> --
> Regards,
> Suyash K
>