Re: [Dev] Incorrect string value: '\xE2\x80\x91200...' for column 'UM_DESCRIPTION'

2016-04-13 Thread Rasika Perera
Hi Rohit,

It seems the issue is with DB Schema. Are you using embedded H2 or can you
let us know the DBMS you are using?

Thanks
~Rasika

On Mon, Apr 11, 2016 at 1:48 PM, rohit  wrote:

> Hi All,
>
>When trying to start wso2 API Manager, I'm stuck with this issue. It
> suggest in the documentation that while creating the database one must add
> 'characterset latin1'. Any Suggestions?
>
>
>
> --
> View this message in context:
> http://wso2-oxygen-tank.10903.n7.nabble.com/Incorrect-string-value-xE2-x80-x91200-for-column-UM-DESCRIPTION-tp134928.html
> Sent from the WSO2 Development mailing list archive at Nabble.com.
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
With Regards,

*Rasika Perera*
Software Engineer
M: +94 71 680 9060 E: rasi...@wso2.com
LinkedIn: http://lk.linkedin.com/in/rasika90

WSO2 Inc. www.wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS] Adding a relative path in external-spark-classpath.conf doesn't work

2016-04-13 Thread Supun Sethunga
Thanks Nirmal for the fix!

I'm closing the Jira [1]

[1] https://wso2.org/jira/browse/DAS-397

On Wed, Apr 13, 2016 at 9:17 AM, Nirmal Fernando  wrote:

> Thanks, Niranda for merging.
>
> On Wed, Apr 13, 2016 at 8:48 AM, Niranda Perera  wrote:
>
>> Hi Nirmal,
>>
>> Thanks for pointing this out. I will merge the PR.
>>
>> Rgds
>> On Apr 13, 2016 08:35, "Nirmal Fernando"  wrote:
>>
>>> Hi,
>>>
>>> * Even though we have implemented the support for relative paths at
>>> repository/conf/analytics/spark/external-spark-classpath.conf file, it
>>> isn't working properly.
>>>
>>>   if (fileExists(line)) {
>>>
>>> scp = scp + separator + line;
>>>
>>> } *else if (fileExists(carbonHome + File.separator +
>>> line)) {*
>>>
>>> *scp = scp + separator + carbonHome + File.separator
>>> + line;*
>>>
>>> *} *else {
>>>
>>> throw new IOException("File not found : " + line);
>>>
>>> }
>>>
>>>   
>>>
>>>   
>>>
>>>   private static boolean fileExists(String path) {
>>>
>>> File tempFile = new File(path);
>>>
>>> return tempFile.exists() && !tempFile.isDirectory();
>>>
>>>}
>>> * We check for file.exists in order to determine the existence of the
>>> file and it'll be true even if it's a relative path in some cases (where
>>> current execution directory = carbon.home).
>>> * But Spark needs the path to be absolute.
>>> * Hence the fix was to check whether the path is absolute too.
>>>
>>> https://github.com/wso2/carbon-analytics/pull/170/files
>>>
>>> Please review and merge this PR.
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Team Lead - WSO2 Machine Learner
>>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Team Lead - WSO2 Machine Learner
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
http://wso2.com/
lean | enterprise | middleware
Mobile : +94 716546324
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] If you have a custom UDF, make sure you add the path to jar in external-spark-classpath.conf to get it work on HA

2016-04-13 Thread Niranda Perera
Correct. As of now, we need to do this in the clustered setup. We'll give a
more user friendly approach later on.

Best
On Apr 13, 2016 09:00, "Nirmal Fernando"  wrote:

> Hi All,
>
> Just want to pass this information, if you are not aware already.
>
> If you have a Jar with custom UDFs, make sure you add the relative path to
> jars in repository/conf/analytics/spark/external-spark-classpath.conf file
> in order for the class to be used properly in a HAed environment.
>
> Sample:
>
> # --
>
> # ADD ADDITIONAL JARS TO THE SPARK CLASSPATH
>
> # --
>
> # Use this config file to add additional jars to the $SPARK_CLASSPATH
> system variable.
>
> # Specify the location of the jar separated by a new line.
>
>
> repository/components/plugins/org.wso2.carbon.analytics.apim.spark_1.0.0.SNAPSHOT.jar
>
> --
>
> Thanks & regards,
> Nirmal
>
> Team Lead - WSO2 Machine Learner
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev