[jira] [Commented] (EAGLE-630) Add Publishments to Policy API

2016-10-16 Thread Hao Chen (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15581298#comment-15581298
 ] 

Hao Chen commented on EAGLE-630:


[~smith3816]

> Add Publishments to Policy API
> --
>
> Key: EAGLE-630
> URL: https://issues.apache.org/jira/browse/EAGLE-630
> Project: Eagle
>  Issue Type: New Feature
>Affects Versions: v0.5.0
>Reporter: Hao Chen
>Assignee: Hao Chen
> Fix For: v0.5.0
>
>
> Path:
> {code}
> POST /metadata/policies/{policyId}/publishments/ 
> {code}
> Data: String array, like:
> {code}
> [
>"publishmentName1", "publishmentName2",.., "publishmentNameN"
> ]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (EAGLE-630) Add Publishments to Policy API

2016-10-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15581293#comment-15581293
 ] 

ASF GitHub Bot commented on EAGLE-630:
--

GitHub user haoch opened a pull request:

https://github.com/apache/incubator-eagle/pull/518

[EAGLE-630] Add Publishments to Policy API

Path:

POST /metadata/policies/{policyId}/publishments/ 

Data: String array, like:

[
   "publishmentName1", "publishmentName2",.., "publishmentNameN"
]

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/haoch/incubator-eagle EAGLE-630

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-eagle/pull/518.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #518


commit 8bcaa034d203ee3ef491f6debd99b2eb73750ac2
Author: Hao Chen 
Date:   2016-10-16T16:34:10Z

[EAGLE-627] Add Policy PolicyValidator and Validation API

https://issues.apache.org/jira/browse/EAGLE-627

* Validate SiddhiQL syntax problem
* Provide Internal information like:
* Validate syntax is ok
* Explain details like inputStreams and outputStreams

commit 140358b439612aed26f3c4b996ca0f78b346ad88
Author: Hao Chen 
Date:   2016-10-16T16:44:45Z

Fix checkstyle warnings

commit dac9c8b23200fe8ed830aa8a4944af1882a6fb9d
Author: Hao Chen 
Date:   2016-10-16T16:49:21Z

Ignore unstabled unit test TestDistinctValuesInTimeBatchWindow#testNormal

commit 24308edb1db17c3887b0368b6fa28968efde3c15
Author: Hao Chen 
Date:   2016-10-16T17:22:51Z

Rename setException(Exception) to setStackTrace(Throwable) for conflicting 
setter definitions for property 'exception'

commit aee5c1b4ee3eb70bd9690bc0a2548aac32b34a73
Author: Hao Chen 
Date:   2016-10-17T05:42:26Z

Path:
~~~
POST /metadata/policies/{policyId}/publishments/
~~~

Data: String array, like:
~~~
[
   "publishmentName1", "publishmentName2",.., "publishmentNameN"
]
~~~




> Add Publishments to Policy API
> --
>
> Key: EAGLE-630
> URL: https://issues.apache.org/jira/browse/EAGLE-630
> Project: Eagle
>  Issue Type: New Feature
>Affects Versions: v0.5.0
>Reporter: Hao Chen
>Assignee: Hao Chen
> Fix For: v0.5.0
>
>
> Path:
> {code}
> POST /metadata/policies/{policyId}/publishments/ 
> {code}
> Data: String array, like:
> {code}
> [
>"publishmentName1", "publishmentName2",.., "publishmentNameN"
> ]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[GitHub] incubator-eagle pull request #518: [EAGLE-630] Add Publishments to Policy AP...

2016-10-16 Thread haoch
GitHub user haoch opened a pull request:

https://github.com/apache/incubator-eagle/pull/518

[EAGLE-630] Add Publishments to Policy API

Path:

POST /metadata/policies/{policyId}/publishments/ 

Data: String array, like:

[
   "publishmentName1", "publishmentName2",.., "publishmentNameN"
]

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/haoch/incubator-eagle EAGLE-630

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-eagle/pull/518.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #518


commit 8bcaa034d203ee3ef491f6debd99b2eb73750ac2
Author: Hao Chen 
Date:   2016-10-16T16:34:10Z

[EAGLE-627] Add Policy PolicyValidator and Validation API

https://issues.apache.org/jira/browse/EAGLE-627

* Validate SiddhiQL syntax problem
* Provide Internal information like:
* Validate syntax is ok
* Explain details like inputStreams and outputStreams

commit 140358b439612aed26f3c4b996ca0f78b346ad88
Author: Hao Chen 
Date:   2016-10-16T16:44:45Z

Fix checkstyle warnings

commit dac9c8b23200fe8ed830aa8a4944af1882a6fb9d
Author: Hao Chen 
Date:   2016-10-16T16:49:21Z

Ignore unstabled unit test TestDistinctValuesInTimeBatchWindow#testNormal

commit 24308edb1db17c3887b0368b6fa28968efde3c15
Author: Hao Chen 
Date:   2016-10-16T17:22:51Z

Rename setException(Exception) to setStackTrace(Throwable) for conflicting 
setter definitions for property 'exception'

commit aee5c1b4ee3eb70bd9690bc0a2548aac32b34a73
Author: Hao Chen 
Date:   2016-10-17T05:42:26Z

Path:
~~~
POST /metadata/policies/{policyId}/publishments/
~~~

Data: String array, like:
~~~
[
   "publishmentName1", "publishmentName2",.., "publishmentNameN"
]
~~~




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Created] (EAGLE-630) Add Publishments to Policy API

2016-10-16 Thread Hao Chen (JIRA)
Hao Chen created EAGLE-630:
--

 Summary: Add Publishments to Policy API
 Key: EAGLE-630
 URL: https://issues.apache.org/jira/browse/EAGLE-630
 Project: Eagle
  Issue Type: New Feature
Affects Versions: v0.5.0
Reporter: Hao Chen
Assignee: Hao Chen
 Fix For: v0.5.0


Path:
{code}
POST /metadata/policies/{policyId}/publishments/ 
{code}

Data: String array, like:
{code}
[
   "publishmentName1", "publishmentName2",.., "publishmentNameN"
]
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Resolved] (EAGLE-627) Add PolicyValidator and Validation API

2016-10-16 Thread Hao Chen (JIRA)

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

Hao Chen resolved EAGLE-627.

Resolution: Fixed

> Add PolicyValidator and Validation API
> --
>
> Key: EAGLE-627
> URL: https://issues.apache.org/jira/browse/EAGLE-627
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.5.0
>Reporter: Hao Chen
>Assignee: Hao Chen
> Fix For: v0.5.0
>
>
> Add Policy PolicyValidator and Validation API on 
> * Validate SiddhiQL syntax problem
> * Provide Internal information like: 
> * Validate syntax is ok 
> * Explain details like inputStreams and outputStreams
> API: 
> {code}
> POST /metadata/policies/validate
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[GitHub] incubator-eagle pull request #499: EAGLE-615 Jsoup parse hive sql return Str...

2016-10-16 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/incubator-eagle/pull/499


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Commented] (EAGLE-615) Jsoup parse hive sql return String without line break "\n"

2016-10-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15581103#comment-15581103
 ] 

ASF GitHub Bot commented on EAGLE-615:
--

Github user asfgit closed the pull request at:

https://github.com/apache/incubator-eagle/pull/499


> Jsoup parse hive sql return String without line break "\n"
> --
>
> Key: EAGLE-615
> URL: https://issues.apache.org/jira/browse/EAGLE-615
> Project: Eagle
>  Issue Type: Bug
>Reporter: Lingang Deng
>Assignee: Lingang Deng
>Priority: Minor
>
> Jsoup parse hive sql don't add "\n", the result is that there is Exception 
> when ParseDriver parse the hivesql and the sql contains comment, such as "--"
> {code:java}
> NoViableAltException(-1@[150:5: ( ( Identifier LPAREN )=> 
> partitionedTableFunction | tableSource | subQuerySource | virtualTableSource 
> )])
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (EAGLE-615) Jsoup parse hive sql return String without line break "\n"

2016-10-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15581100#comment-15581100
 ] 

ASF GitHub Bot commented on EAGLE-615:
--

Github user haoch commented on the issue:

https://github.com/apache/incubator-eagle/pull/499
  
LGTM, thanks for the contribution.


> Jsoup parse hive sql return String without line break "\n"
> --
>
> Key: EAGLE-615
> URL: https://issues.apache.org/jira/browse/EAGLE-615
> Project: Eagle
>  Issue Type: Bug
>Reporter: Lingang Deng
>Assignee: Lingang Deng
>Priority: Minor
>
> Jsoup parse hive sql don't add "\n", the result is that there is Exception 
> when ParseDriver parse the hivesql and the sql contains comment, such as "--"
> {code:java}
> NoViableAltException(-1@[150:5: ( ( Identifier LPAREN )=> 
> partitionedTableFunction | tableSource | subQuerySource | virtualTableSource 
> )])
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[GitHub] incubator-eagle issue #499: EAGLE-615 Jsoup parse hive sql return String wit...

2016-10-16 Thread haoch
Github user haoch commented on the issue:

https://github.com/apache/incubator-eagle/pull/499
  
LGTM, thanks for the contribution.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Commented] (EAGLE-627) Add PolicyValidator and Validation API

2016-10-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15581088#comment-15581088
 ] 

ASF GitHub Bot commented on EAGLE-627:
--

Github user asfgit closed the pull request at:

https://github.com/apache/incubator-eagle/pull/515


> Add PolicyValidator and Validation API
> --
>
> Key: EAGLE-627
> URL: https://issues.apache.org/jira/browse/EAGLE-627
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.5.0
>Reporter: Hao Chen
>Assignee: Hao Chen
> Fix For: v0.5.0
>
>
> Add Policy PolicyValidator and Validation API on 
> * Validate SiddhiQL syntax problem
> * Provide Internal information like: 
> * Validate syntax is ok 
> * Explain details like inputStreams and outputStreams
> API: 
> {code}
> POST /metadata/policies/validate
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[GitHub] incubator-eagle pull request #515: [EAGLE-627] Add PolicyValidator and Valid...

2016-10-16 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/incubator-eagle/pull/515


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Updated] (EAGLE-628) Fix jdbc metadata bugs

2016-10-16 Thread wujinhu (JIRA)

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

wujinhu updated EAGLE-628:
--
Description: 
1. when Site Id/Display Name/Description is missing, it will fail to create 
site(some flelds of sql are missing).
2. configuration should be saved in applicationentity
3. enable update application entity
4. throw IllegalArgumentException("Duplicated appId), but table is empty
5. delete site throw exception
Caused by: java.sql.SQLException: Parameter index out of range (2 > number of 
parameters, which is 1).
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:996)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:935)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:924)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:870)
at 
com.mysql.jdbc.PreparedStatement.checkBounds(PreparedStatement.java:3391)
at 
com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:3376)
at 
com.mysql.jdbc.PreparedStatement.setString(PreparedStatement.java:4102)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.setString(DelegatingPreparedStatement.java:135)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.setString(DelegatingPreparedStatement.java:135)
at 
org.apache.eagle.metadata.store.jdbc.service.orm.SiteEntityToRelation.accept(SiteEntityToRelation.java:56)
at 
org.apache.eagle.metadata.store.jdbc.service.orm.SiteEntityToRelation.accept(SiteEntityToRelation.java:29)
at 
org.apache.eagle.metadata.store.jdbc.JDBCMetadataMetadataStoreServiceImpl.update(JDBCMetadataMetadataStoreServiceImpl.java:216)
at org.apache.eagle.metadata.store.jdbc.service.SiteEnt

  was:
1. when Site Id/Display Name/Description is missing, it will fail to create 
site(some flelds of sql are missing).
2. configuration should be saved in applicationentity
3. enable update application entity
4. throw IllegalArgumentException("Duplicated appId), but table is empty


> Fix jdbc metadata bugs
> --
>
> Key: EAGLE-628
> URL: https://issues.apache.org/jira/browse/EAGLE-628
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.5.0
>Reporter: wujinhu
>Assignee: wujinhu
> Fix For: v0.5.0
>
>
> 1. when Site Id/Display Name/Description is missing, it will fail to create 
> site(some flelds of sql are missing).
> 2. configuration should be saved in applicationentity
> 3. enable update application entity
> 4. throw IllegalArgumentException("Duplicated appId), but table is empty
> 5. delete site throw exception
> Caused by: java.sql.SQLException: Parameter index out of range (2 > number of 
> parameters, which is 1).
>   at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:996)
>   at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:935)
>   at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:924)
>   at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:870)
>   at 
> com.mysql.jdbc.PreparedStatement.checkBounds(PreparedStatement.java:3391)
>   at 
> com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:3376)
>   at 
> com.mysql.jdbc.PreparedStatement.setString(PreparedStatement.java:4102)
>   at 
> org.apache.commons.dbcp.DelegatingPreparedStatement.setString(DelegatingPreparedStatement.java:135)
>   at 
> org.apache.commons.dbcp.DelegatingPreparedStatement.setString(DelegatingPreparedStatement.java:135)
>   at 
> org.apache.eagle.metadata.store.jdbc.service.orm.SiteEntityToRelation.accept(SiteEntityToRelation.java:56)
>   at 
> org.apache.eagle.metadata.store.jdbc.service.orm.SiteEntityToRelation.accept(SiteEntityToRelation.java:29)
>   at 
> org.apache.eagle.metadata.store.jdbc.JDBCMetadataMetadataStoreServiceImpl.update(JDBCMetadataMetadataStoreServiceImpl.java:216)
>   at org.apache.eagle.metadata.store.jdbc.service.SiteEnt



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (EAGLE-629) hive.ql.Parser can`t parse hive sql with keyword

2016-10-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15581040#comment-15581040
 ] 

ASF GitHub Bot commented on EAGLE-629:
--

GitHub user chitin opened a pull request:

https://github.com/apache/incubator-eagle/pull/517

EAGLE-629 hive.ql.Parser can`t parse hive sql with keyword

EAGLE-629 hive.ql.Parser can`t parse hive sql with keyword
- Construct a HiveConf and set hive.support.sql11.reserved.keywords=false
https://issues.apache.org/jira/browse/EAGLE-629

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/chitin/incubator-eagle EAGLE629

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-eagle/pull/517.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #517


commit 7b5d89c37e5d53633077fa7f5907a2a0974b8b1b
Author: chitin 
Date:   2016-10-13T05:19:18Z

EAGLE-615 Jsoup parse hive sql return String without line break "\n"
- add "doc.outputSettings().prettyPrint(false);", get element value via 
getWholeText(),not text()

commit d56b1af63bc3d2a9e99e199acfec08963f2d98e9
Author: chitin 
Date:   2016-10-17T02:37:43Z

Merge branch 'master' of github.com:apache/incubator-eagle into master4

commit 35a9ec7d855fe4f2ed08090efb9703dce6928ae8
Author: chitin 
Date:   2016-10-17T03:01:11Z

EAGLE-629 hive.ql.Parser can`t parse hive sql with keyword
- Construct a HiveConf and set hive.support.sql11.reserved.keywords=false
https://issues.apache.org/jira/browse/EAGLE-629




> hive.ql.Parser can`t parse hive sql with keyword
> 
>
> Key: EAGLE-629
> URL: https://issues.apache.org/jira/browse/EAGLE-629
> Project: Eagle
>  Issue Type: Bug
> Environment: hive1.2.1
>Reporter: Lingang Deng
>Assignee: Lingang Deng
>
> org.apache.eagle.security.hive.ql.Parser can't parser a hive query sql with 
> keywords,It will throw:
> {code:java}
> Exception in thread "main" java.lang.NullPointerException
>   at org.apache.hadoop.hive.conf.HiveConf.getBoolVar(HiveConf.java:2583)
>   at 
> org.apache.hadoop.hive.ql.parse.HiveParser.useSQL11ReservedKeywordsForIdentifier(HiveParser.java:1000)
>   at 
> org.apache.hadoop.hive.ql.parse.HiveParser_IdentifiersParser.useSQL11ReservedKeywordsForIdentifier(HiveParser_IdentifiersParser.java:726)
>   at 
> org.apache.hadoop.hive.ql.parse.HiveParser_IdentifiersParser.identifier(HiveParser_IdentifiersParser.java:10922)
>   at 
> org.apache.hadoop.hive.ql.parse.HiveParser.identifier(HiveParser.java:45850)
>   at 
> org.apache.hadoop.hive.ql.parse.HiveParser_FromClauseParser.tableName(HiveParser_FromClauseParser.java:4764)
>   at 
> org.apache.hadoop.hive.ql.parse.HiveParser_FromClauseParser.tableAllColumns(HiveParser_FromClauseParser.java:1048)
>   at 
> org.apache.hadoop.hive.ql.parse.HiveParser.tableAllColumns(HiveParser.java:45900)
>   at 
> org.apache.hadoop.hive.ql.parse.HiveParser_SelectClauseParser.synpred1_SelectClauseParser_fragment(HiveParser_SelectClauseParser.java:5514)
>   at 
> org.apache.hadoop.hive.ql.parse.HiveParser_SelectClauseParser.synpred1_SelectClauseParser(HiveParser_SelectClauseParser.java:5560)
>   at 
> org.apache.hadoop.hive.ql.parse.HiveParser_SelectClauseParser$DFA17.specialStateTransition(HiveParser_SelectClauseParser.java:11160)
>   at org.antlr.runtime.DFA.predict(DFA.java:80)
>   at 
> org.apache.hadoop.hive.ql.parse.HiveParser_SelectClauseParser.selectItem(HiveParser_SelectClauseParser.java:2853)
>   at 
> org.apache.hadoop.hive.ql.parse.HiveParser_SelectClauseParser.selectList(HiveParser_SelectClauseParser.java:1373)
>   at 
> org.apache.hadoop.hive.ql.parse.HiveParser_SelectClauseParser.selectClause(HiveParser_SelectClauseParser.java:1128)
>   at 
> org.apache.hadoop.hive.ql.parse.HiveParser.selectClause(HiveParser.java:45827)
>   at 
> org.apache.hadoop.hive.ql.parse.HiveParser.selectStatement(HiveParser.java:41495)
>   at 
> org.apache.hadoop.hive.ql.parse.HiveParser.regularBody(HiveParser.java:41230)
>   at 
> org.apache.hadoop.hive.ql.parse.HiveParser.queryStatementExpressionBody(HiveParser.java:40413)
>   at 
> org.apache.hadoop.hive.ql.parse.HiveParser.queryStatementExpression(HiveParser.java:40283)
>   at 
> org.apache.hadoop.hive.ql.parse.HiveParser.execStatement(HiveParser.java:1590)
>   at 
> org.apache.hadoop.hive.ql.parse.HiveParser.statement(HiveParser.java:1109)
>   at 
> org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:202)
>   at 
> 

[GitHub] incubator-eagle pull request #517: EAGLE-629 hive.ql.Parser can`t parse hive...

2016-10-16 Thread chitin
GitHub user chitin opened a pull request:

https://github.com/apache/incubator-eagle/pull/517

EAGLE-629 hive.ql.Parser can`t parse hive sql with keyword

EAGLE-629 hive.ql.Parser can`t parse hive sql with keyword
- Construct a HiveConf and set hive.support.sql11.reserved.keywords=false
https://issues.apache.org/jira/browse/EAGLE-629

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/chitin/incubator-eagle EAGLE629

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-eagle/pull/517.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #517


commit 7b5d89c37e5d53633077fa7f5907a2a0974b8b1b
Author: chitin 
Date:   2016-10-13T05:19:18Z

EAGLE-615 Jsoup parse hive sql return String without line break "\n"
- add "doc.outputSettings().prettyPrint(false);", get element value via 
getWholeText(),not text()

commit d56b1af63bc3d2a9e99e199acfec08963f2d98e9
Author: chitin 
Date:   2016-10-17T02:37:43Z

Merge branch 'master' of github.com:apache/incubator-eagle into master4

commit 35a9ec7d855fe4f2ed08090efb9703dce6928ae8
Author: chitin 
Date:   2016-10-17T03:01:11Z

EAGLE-629 hive.ql.Parser can`t parse hive sql with keyword
- Construct a HiveConf and set hive.support.sql11.reserved.keywords=false
https://issues.apache.org/jira/browse/EAGLE-629




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Created] (EAGLE-629) hive.ql.Parser can`t parse hive sql with keyword

2016-10-16 Thread Lingang Deng (JIRA)
Lingang Deng created EAGLE-629:
--

 Summary: hive.ql.Parser can`t parse hive sql with keyword
 Key: EAGLE-629
 URL: https://issues.apache.org/jira/browse/EAGLE-629
 Project: Eagle
  Issue Type: Bug
 Environment: hive1.2.1
Reporter: Lingang Deng
Assignee: Lingang Deng


org.apache.eagle.security.hive.ql.Parser can't parser a hive query sql with 
keywords,It will throw:
{code:java}
Exception in thread "main" java.lang.NullPointerException
at org.apache.hadoop.hive.conf.HiveConf.getBoolVar(HiveConf.java:2583)
at 
org.apache.hadoop.hive.ql.parse.HiveParser.useSQL11ReservedKeywordsForIdentifier(HiveParser.java:1000)
at 
org.apache.hadoop.hive.ql.parse.HiveParser_IdentifiersParser.useSQL11ReservedKeywordsForIdentifier(HiveParser_IdentifiersParser.java:726)
at 
org.apache.hadoop.hive.ql.parse.HiveParser_IdentifiersParser.identifier(HiveParser_IdentifiersParser.java:10922)
at 
org.apache.hadoop.hive.ql.parse.HiveParser.identifier(HiveParser.java:45850)
at 
org.apache.hadoop.hive.ql.parse.HiveParser_FromClauseParser.tableName(HiveParser_FromClauseParser.java:4764)
at 
org.apache.hadoop.hive.ql.parse.HiveParser_FromClauseParser.tableAllColumns(HiveParser_FromClauseParser.java:1048)
at 
org.apache.hadoop.hive.ql.parse.HiveParser.tableAllColumns(HiveParser.java:45900)
at 
org.apache.hadoop.hive.ql.parse.HiveParser_SelectClauseParser.synpred1_SelectClauseParser_fragment(HiveParser_SelectClauseParser.java:5514)
at 
org.apache.hadoop.hive.ql.parse.HiveParser_SelectClauseParser.synpred1_SelectClauseParser(HiveParser_SelectClauseParser.java:5560)
at 
org.apache.hadoop.hive.ql.parse.HiveParser_SelectClauseParser$DFA17.specialStateTransition(HiveParser_SelectClauseParser.java:11160)
at org.antlr.runtime.DFA.predict(DFA.java:80)
at 
org.apache.hadoop.hive.ql.parse.HiveParser_SelectClauseParser.selectItem(HiveParser_SelectClauseParser.java:2853)
at 
org.apache.hadoop.hive.ql.parse.HiveParser_SelectClauseParser.selectList(HiveParser_SelectClauseParser.java:1373)
at 
org.apache.hadoop.hive.ql.parse.HiveParser_SelectClauseParser.selectClause(HiveParser_SelectClauseParser.java:1128)
at 
org.apache.hadoop.hive.ql.parse.HiveParser.selectClause(HiveParser.java:45827)
at 
org.apache.hadoop.hive.ql.parse.HiveParser.selectStatement(HiveParser.java:41495)
at 
org.apache.hadoop.hive.ql.parse.HiveParser.regularBody(HiveParser.java:41230)
at 
org.apache.hadoop.hive.ql.parse.HiveParser.queryStatementExpressionBody(HiveParser.java:40413)
at 
org.apache.hadoop.hive.ql.parse.HiveParser.queryStatementExpression(HiveParser.java:40283)
at 
org.apache.hadoop.hive.ql.parse.HiveParser.execStatement(HiveParser.java:1590)
at 
org.apache.hadoop.hive.ql.parse.HiveParser.statement(HiveParser.java:1109)
at 
org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:202)
at 
org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:166)
at 
org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:161)
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Resolved] (EAGLE-621) set authentication disabled by default when no 'auth' is configured in configuration.yml

2016-10-16 Thread Michael Wu (JIRA)

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

Michael Wu resolved EAGLE-621.
--
Resolution: Fixed

> set authentication disabled by default when no 'auth' is configured in 
> configuration.yml
> 
>
> Key: EAGLE-621
> URL: https://issues.apache.org/jira/browse/EAGLE-621
> Project: Eagle
>  Issue Type: Task
>Reporter: Michael Wu
>Assignee: Michael Wu
>
> Eagle's authentication configuration is set in config file, and we need to 
> set auth-service as disabled by default, especially when there is no 'auth' 
> and descendant param set.
> Also this may affect auth registration code structure, it need refactoring.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Closed] (EAGLE-621) set authentication disabled by default when no 'auth' is configured in configuration.yml

2016-10-16 Thread Michael Wu (JIRA)

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

Michael Wu closed EAGLE-621.


> set authentication disabled by default when no 'auth' is configured in 
> configuration.yml
> 
>
> Key: EAGLE-621
> URL: https://issues.apache.org/jira/browse/EAGLE-621
> Project: Eagle
>  Issue Type: Task
>Reporter: Michael Wu
>Assignee: Michael Wu
>
> Eagle's authentication configuration is set in config file, and we need to 
> set auth-service as disabled by default, especially when there is no 'auth' 
> and descendant param set.
> Also this may affect auth registration code structure, it need refactoring.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[GitHub] incubator-eagle pull request #514: [EAGLE-621] set authentication disabled b...

2016-10-16 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/incubator-eagle/pull/514


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Commented] (EAGLE-621) set authentication disabled by default when no 'auth' is configured in configuration.yml

2016-10-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15581007#comment-15581007
 ] 

ASF GitHub Bot commented on EAGLE-621:
--

Github user asfgit closed the pull request at:

https://github.com/apache/incubator-eagle/pull/514


> set authentication disabled by default when no 'auth' is configured in 
> configuration.yml
> 
>
> Key: EAGLE-621
> URL: https://issues.apache.org/jira/browse/EAGLE-621
> Project: Eagle
>  Issue Type: Task
>Reporter: Michael Wu
>Assignee: Michael Wu
>
> Eagle's authentication configuration is set in config file, and we need to 
> set auth-service as disabled by default, especially when there is no 'auth' 
> and descendant param set.
> Also this may affect auth registration code structure, it need refactoring.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[GitHub] incubator-eagle pull request #516: EAGLE-625 remove site ignore

2016-10-16 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/incubator-eagle/pull/516


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Commented] (EAGLE-625) Site home page error for missing partials/site/home.html

2016-10-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15580984#comment-15580984
 ] 

ASF GitHub Bot commented on EAGLE-625:
--

Github user asfgit closed the pull request at:

https://github.com/apache/incubator-eagle/pull/516


> Site home page error for missing partials/site/home.html
> 
>
> Key: EAGLE-625
> URL: https://issues.apache.org/jira/browse/EAGLE-625
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.5.0
>Reporter: Hao Chen
>Assignee: Jilin, Jiang
> Fix For: v0.5.0
>
>
> {code}
> url:
> partials/site/home.html?_=0.5842998691423007
> status:
> 404
> exception:
> undefined
> message:
> undefined
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (EAGLE-628) Fix jdbc metadata bugs

2016-10-16 Thread wujinhu (JIRA)

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

wujinhu updated EAGLE-628:
--
Description: 
1. when Site Id/Display Name/Description is missing, it will fail to create 
site(filed of sql is missing).
2. configuration should be saved in applicationentity
3. enable update application entity
4. throw IllegalArgumentException("Duplicated appId), but table is empty

  was:
1. When Site Id/Display Name/Description is missing, it will fail to create 
site(filed of sql is missing).
2. configuration should be saved in applicationentity
3. enable update application entity


> Fix jdbc metadata bugs
> --
>
> Key: EAGLE-628
> URL: https://issues.apache.org/jira/browse/EAGLE-628
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.5.0
>Reporter: wujinhu
>Assignee: wujinhu
> Fix For: v0.5.0
>
>
> 1. when Site Id/Display Name/Description is missing, it will fail to create 
> site(filed of sql is missing).
> 2. configuration should be saved in applicationentity
> 3. enable update application entity
> 4. throw IllegalArgumentException("Duplicated appId), but table is empty



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (EAGLE-628) Fix jdbc metadata bugs

2016-10-16 Thread wujinhu (JIRA)

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

wujinhu updated EAGLE-628:
--
Description: 
1. when Site Id/Display Name/Description is missing, it will fail to create 
site(some flelds of sql are missing).
2. configuration should be saved in applicationentity
3. enable update application entity
4. throw IllegalArgumentException("Duplicated appId), but table is empty

  was:
1. when Site Id/Display Name/Description is missing, it will fail to create 
site(filed of sql is missing).
2. configuration should be saved in applicationentity
3. enable update application entity
4. throw IllegalArgumentException("Duplicated appId), but table is empty


> Fix jdbc metadata bugs
> --
>
> Key: EAGLE-628
> URL: https://issues.apache.org/jira/browse/EAGLE-628
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.5.0
>Reporter: wujinhu
>Assignee: wujinhu
> Fix For: v0.5.0
>
>
> 1. when Site Id/Display Name/Description is missing, it will fail to create 
> site(some flelds of sql are missing).
> 2. configuration should be saved in applicationentity
> 3. enable update application entity
> 4. throw IllegalArgumentException("Duplicated appId), but table is empty



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[GitHub] incubator-eagle issue #516: EAGLE-625 remove site ignore

2016-10-16 Thread haoch
Github user haoch commented on the issue:

https://github.com/apache/incubator-eagle/pull/516
  
LGTM, please go ahead to merge into master.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Commented] (EAGLE-625) Site home page error for missing partials/site/home.html

2016-10-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15580973#comment-15580973
 ] 

ASF GitHub Bot commented on EAGLE-625:
--

Github user haoch commented on the issue:

https://github.com/apache/incubator-eagle/pull/516
  
LGTM, please go ahead to merge into master.


> Site home page error for missing partials/site/home.html
> 
>
> Key: EAGLE-625
> URL: https://issues.apache.org/jira/browse/EAGLE-625
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.5.0
>Reporter: Hao Chen
>Assignee: Jilin, Jiang
> Fix For: v0.5.0
>
>
> {code}
> url:
> partials/site/home.html?_=0.5842998691423007
> status:
> 404
> exception:
> undefined
> message:
> undefined
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (EAGLE-625) Site home page error for missing partials/site/home.html

2016-10-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15580969#comment-15580969
 ] 

ASF GitHub Bot commented on EAGLE-625:
--

GitHub user zombieJ opened a pull request:

https://github.com/apache/incubator-eagle/pull/516

EAGLE-625 remove site ignore

Root `.gitignore` prevent the site folder which ignore the web page site 
folder.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/zombieJ/incubator-eagle EAGLE-625

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-eagle/pull/516.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #516


commit 10f64a71e2a8dbfb15f078d02cc44aa553811ed9
Author: zombieJ 
Date:   2016-10-17T02:17:20Z

remove site ignore




> Site home page error for missing partials/site/home.html
> 
>
> Key: EAGLE-625
> URL: https://issues.apache.org/jira/browse/EAGLE-625
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.5.0
>Reporter: Hao Chen
>Assignee: Jilin, Jiang
> Fix For: v0.5.0
>
>
> {code}
> url:
> partials/site/home.html?_=0.5842998691423007
> status:
> 404
> exception:
> undefined
> message:
> undefined
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[GitHub] incubator-eagle pull request #516: EAGLE-625 remove site ignore

2016-10-16 Thread zombieJ
GitHub user zombieJ opened a pull request:

https://github.com/apache/incubator-eagle/pull/516

EAGLE-625 remove site ignore

Root `.gitignore` prevent the site folder which ignore the web page site 
folder.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/zombieJ/incubator-eagle EAGLE-625

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-eagle/pull/516.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #516


commit 10f64a71e2a8dbfb15f078d02cc44aa553811ed9
Author: zombieJ 
Date:   2016-10-17T02:17:20Z

remove site ignore




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Created] (EAGLE-628) Fix jdbc metadata bugs

2016-10-16 Thread wujinhu (JIRA)
wujinhu created EAGLE-628:
-

 Summary: Fix jdbc metadata bugs
 Key: EAGLE-628
 URL: https://issues.apache.org/jira/browse/EAGLE-628
 Project: Eagle
  Issue Type: Bug
Affects Versions: v0.5.0
Reporter: wujinhu
Assignee: wujinhu
 Fix For: v0.5.0


1. When Site Id/Display Name/Description is missing, it will fail to create 
site(filed of sql is missing).
2. configuration should be saved in applicationentity
3. enable update application entity



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Closed] (EAGLE-617) Scrollbar is missing when install Map Reduce History Job Monitoring

2016-10-16 Thread wujinhu (JIRA)

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

wujinhu closed EAGLE-617.
-

> Scrollbar is missing when install Map Reduce History Job Monitoring
> ---
>
> Key: EAGLE-617
> URL: https://issues.apache.org/jira/browse/EAGLE-617
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.5.0
>Reporter: wujinhu
>Assignee: Jilin, Jiang
> Fix For: v0.5.0
>
>
> When I install Map Reduce History Job Monitoring and add new field 
> configures, Scrollbar is missing. My screen resolution is 2880 * 1800



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Closed] (EAGLE-527) Exception found when scan entity repositories

2016-10-16 Thread wujinhu (JIRA)

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

wujinhu closed EAGLE-527.
-

> Exception found when scan entity repositories
> -
>
> Key: EAGLE-527
> URL: https://issues.apache.org/jira/browse/EAGLE-527
> Project: Eagle
>  Issue Type: Bug
>Reporter: wujinhu
>Assignee: Hao Chen
>
> 2016-09-06 00:15:22 Thread-6-mrHistoryJobExecutor 
> org.apache.eagle.jpm.mr.history.parser.JobEntityCreationEagleServiceListener 
> [INFO] flush JobExecutionAPIEntity of number 1
> 2016-09-06 00:15:22 Thread-6-mrHistoryJobExecutor 
> org.apache.eagle.log.entity.repo.EntityRepositoryScanner [INFO] Scanning all 
> entity repositories with pattern "org.apache.eagl
> e.*"
> 2016-09-06 00:15:23 eXtcos managed thread 1 
> net.sf.extcos.internal.JavaResourceAccessor [ERROR] Unable to read interface 
> [org.junit.runners.BlockJUnit4ClassRunner]
> java.io.IOException: Class not found
> at org.objectweb.asm.ClassReader.a(Unknown Source) 
> [asm-all-5.0.jar:5.0]
> at org.objectweb.asm.ClassReader.(Unknown Source) 
> [asm-all-5.0.jar:5.0]
> at 
> net.sf.extcos.internal.JavaResourceAccessor.readSuperInterfaces(JavaResourceAccessor.java:446)
>  [stormjar.jar:na]
> at 
> net.sf.extcos.internal.JavaResourceAccessor.readInheritedInterfaces(JavaResourceAccessor.java:439)
>  [stormjar.jar:na]
> at 
> net.sf.extcos.internal.JavaResourceAccessor.readInterfaces(JavaResourceAccessor.java:431)
>  [stormjar.jar:na]
> at 
> net.sf.extcos.internal.JavaResourceAccessor.access$300(JavaResourceAccessor.java:38)
>  [stormjar.jar:na]
> at 
> net.sf.extcos.internal.JavaResourceAccessor$GeneralVisitor.visit(JavaResourceAccessor.java:90)
>  [stormjar.jar:na]
> at org.objectweb.asm.ClassReader.accept(Unknown Source) 
> [asm-all-5.0.jar:5.0]
> at org.objectweb.asm.ClassReader.accept(Unknown Source) 
> [asm-all-5.0.jar:5.0]
> at 
> net.sf.extcos.internal.JavaResourceAccessor.readClassData(JavaResourceAccessor.java:363)
>  [stormjar.jar:na]
> at 
> net.sf.extcos.internal.JavaResourceAccessor.setResourceUrl(JavaResourceAccessor.java:333)
>  [stormjar.jar:na]
> at 
> net.sf.extcos.internal.URLResource.getResourceAccessor(URLResource.java:93) 
> [stormjar.jar:na]
> at net.sf.extcos.internal.URLResource.isClass(URLResource.java:126) 
> [stormjar.jar:na]
> at net.sf.extcos.internal.RootFilter.filter(RootFilter.java:22) 
> [stormjar.jar:na]
> at 
> net.sf.extcos.internal.AbstractChainedFilter.filter(AbstractChainedFilter.java:89)
>  [stormjar.jar:na]
> at 
> net.sf.extcos.internal.ThreadingFilterInterceptor$1.run(ThreadingFilterInterceptor.java:48)
>  [stormjar.jar:na]
> at java.lang.Thread.run(Thread.java:745) [na:1.8.0_91]
> 2016-09-06 00:15:23 eXtcos managed thread 1 
> net.sf.extcos.internal.JavaResourceAccessor [ERROR] Unable to read super 
> class [org.junit.runners.BlockJUnit4ClassRunner]
> java.io.IOException: Class not found
> at org.objectweb.asm.ClassReader.a(Unknown Source) 
> [asm-all-5.0.jar:5.0]
> at org.objectweb.asm.ClassReader.(Unknown Source) 
> [asm-all-5.0.jar:5.0]
> at 
> net.sf.extcos.internal.JavaResourceAccessor.readSuperClasses(JavaResourceAccessor.java:392)
>  [stormjar.jar:na]
> at 
> net.sf.extcos.internal.JavaResourceAccessor.access$400(JavaResourceAccessor.java:38)
>  [stormjar.jar:na]
> at 
> net.sf.extcos.internal.JavaResourceAccessor$GeneralVisitor.visit(JavaResourceAccessor.java:91)
>  [stormjar.jar:na]
> at org.objectweb.asm.ClassReader.accept(Unknown Source) 
> [asm-all-5.0.jar:5.0]
> at org.objectweb.asm.ClassReader.accept(Unknown Source) 
> [asm-all-5.0.jar:5.0]
> at 
> net.sf.extcos.internal.JavaResourceAccessor.readClassData(JavaResourceAccessor.java:363)
>  [stormjar.jar:na]
> at 
> net.sf.extcos.internal.JavaResourceAccessor.setResourceUrl(JavaResourceAccessor.java:333)
>  [stormjar.jar:na]
> at 
> net.sf.extcos.internal.URLResource.getResourceAccessor(URLResource.java:93) 
> [stormjar.jar:na]
> at net.sf.extcos.internal.URLResource.isClass(URLResource.java:126) 
> [stormjar.jar:na]
> at net.sf.extcos.internal.RootFilter.filter(RootFilter.java:22) 
> [stormjar.jar:na]
> at 
> net.sf.extcos.internal.AbstractChainedFilter.filter(AbstractChainedFilter.java:89)
>  [stormjar.jar:na]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (EAGLE-627) Add PolicyValidator and Validation API

2016-10-16 Thread Hao Chen (JIRA)

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

Hao Chen updated EAGLE-627:
---
Summary: Add PolicyValidator and Validation API  (was: Add Policy 
PolicyValidator and Validation API)

> Add PolicyValidator and Validation API
> --
>
> Key: EAGLE-627
> URL: https://issues.apache.org/jira/browse/EAGLE-627
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.5.0
>Reporter: Hao Chen
>Assignee: Hao Chen
> Fix For: v0.5.0
>
>
> Add Policy PolicyValidator and Validation API on 
> * Validate SiddhiQL syntax problem
> * Provide Internal information like: 
> * Validate syntax is ok 
> * Explain details like inputStreams and outputStreams
> API: 
> {code}
> POST /metadata/policies/validate
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (EAGLE-627) Add Policy PolicyValidator and Validation API

2016-10-16 Thread Hao Chen (JIRA)

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

Hao Chen updated EAGLE-627:
---
Description: 
Add Policy PolicyValidator and Validation API on 

* Validate SiddhiQL syntax problem
* Provide Internal information like: 
* Validate syntax is ok 
* Explain details like inputStreams and outputStreams

API: 
{code}
POST /metadata/policies/validate
{code}


  was:
Add Policy SiddhiQL Explain API to:

* Validate SiddhiQL syntax problem
* Provide Internal information like: 
* Validate syntax is ok 
* Explain details like inputStreams and outputStreams



> Add Policy PolicyValidator and Validation API
> -
>
> Key: EAGLE-627
> URL: https://issues.apache.org/jira/browse/EAGLE-627
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.5.0
>Reporter: Hao Chen
>Assignee: Hao Chen
> Fix For: v0.5.0
>
>
> Add Policy PolicyValidator and Validation API on 
> * Validate SiddhiQL syntax problem
> * Provide Internal information like: 
> * Validate syntax is ok 
> * Explain details like inputStreams and outputStreams
> API: 
> {code}
> POST /metadata/policies/validate
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (EAGLE-627) Add Policy PolicyValidator and Validation API

2016-10-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15580214#comment-15580214
 ] 

ASF GitHub Bot commented on EAGLE-627:
--

GitHub user haoch opened a pull request:

https://github.com/apache/incubator-eagle/pull/515

[EAGLE-627] Add Policy PolicyValidator and Validation API

Add Policy SiddhiQL Explain API to:

* Validate SiddhiQL syntax problem
* Provide Internal information like: 
* Validate syntax is ok 
* Explain details like inputStreams and outputStreams


You can merge this pull request into a Git repository by running:

$ git pull https://github.com/haoch/incubator-eagle EAGLE-627

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-eagle/pull/515.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #515


commit 8bcaa034d203ee3ef491f6debd99b2eb73750ac2
Author: Hao Chen 
Date:   2016-10-16T16:34:10Z

[EAGLE-627] Add Policy PolicyValidator and Validation API

https://issues.apache.org/jira/browse/EAGLE-627

* Validate SiddhiQL syntax problem
* Provide Internal information like:
* Validate syntax is ok
* Explain details like inputStreams and outputStreams




> Add Policy PolicyValidator and Validation API
> -
>
> Key: EAGLE-627
> URL: https://issues.apache.org/jira/browse/EAGLE-627
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.5.0
>Reporter: Hao Chen
>Assignee: Hao Chen
> Fix For: v0.5.0
>
>
> Add Policy SiddhiQL Explain API to:
> * Validate SiddhiQL syntax problem
> * Provide Internal information like: 
> * Validate syntax is ok 
> * Explain details like inputStreams and outputStreams



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[GitHub] incubator-eagle pull request #515: [EAGLE-627] Add Policy PolicyValidator an...

2016-10-16 Thread haoch
GitHub user haoch opened a pull request:

https://github.com/apache/incubator-eagle/pull/515

[EAGLE-627] Add Policy PolicyValidator and Validation API

Add Policy SiddhiQL Explain API to:

* Validate SiddhiQL syntax problem
* Provide Internal information like: 
* Validate syntax is ok 
* Explain details like inputStreams and outputStreams


You can merge this pull request into a Git repository by running:

$ git pull https://github.com/haoch/incubator-eagle EAGLE-627

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-eagle/pull/515.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #515


commit 8bcaa034d203ee3ef491f6debd99b2eb73750ac2
Author: Hao Chen 
Date:   2016-10-16T16:34:10Z

[EAGLE-627] Add Policy PolicyValidator and Validation API

https://issues.apache.org/jira/browse/EAGLE-627

* Validate SiddhiQL syntax problem
* Provide Internal information like:
* Validate syntax is ok
* Explain details like inputStreams and outputStreams




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Updated] (EAGLE-627) Add Policy PolicyValidator and Validation API

2016-10-16 Thread Hao Chen (JIRA)

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

Hao Chen updated EAGLE-627:
---
Summary: Add Policy PolicyValidator and Validation API  (was: Add Policy 
SiddhiQL Explain API)

> Add Policy PolicyValidator and Validation API
> -
>
> Key: EAGLE-627
> URL: https://issues.apache.org/jira/browse/EAGLE-627
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.5.0
>Reporter: Hao Chen
>Assignee: Hao Chen
> Fix For: v0.5.0
>
>
> Add Policy SiddhiQL Explain API to:
> * Validate SiddhiQL syntax problem
> * Provide Internal information like: 
> * Validate syntax is ok 
> * Explain details like inputStreams and outputStreams



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (EAGLE-627) Add Policy SiddhiQL Explain API

2016-10-16 Thread Hao Chen (JIRA)
Hao Chen created EAGLE-627:
--

 Summary: Add Policy SiddhiQL Explain API
 Key: EAGLE-627
 URL: https://issues.apache.org/jira/browse/EAGLE-627
 Project: Eagle
  Issue Type: Bug
Affects Versions: v0.5.0
Reporter: Hao Chen
Assignee: Hao Chen
 Fix For: v0.5.0


Add Policy SiddhiQL Explain API to:

* Validate SiddhiQL syntax problem
* Provide Internal information like: 
* Validate syntax is ok 
* Explain details like inputStreams and outputStreams




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (EAGLE-621) set authentication disabled by default when no 'auth' is configured in configuration.yml

2016-10-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15580029#comment-15580029
 ] 

ASF GitHub Bot commented on EAGLE-621:
--

Github user haoch commented on a diff in the pull request:

https://github.com/apache/incubator-eagle/pull/514#discussion_r83551893
  
--- Diff: 
eagle-server/src/main/java/org/apache/eagle/server/authentication/BasicAuthProviderBuilder.java
 ---
@@ -0,0 +1,61 @@
+package org.apache.eagle.server.authentication;
+
+import com.google.common.cache.CacheBuilderSpec;
+import com.sun.jersey.api.core.HttpContext;
+import com.sun.jersey.api.model.Parameter;
+import com.sun.jersey.core.spi.component.ComponentContext;
+import com.sun.jersey.server.impl.inject.AbstractHttpContextInjectable;
+import com.sun.jersey.spi.inject.Injectable;
+import io.dropwizard.auth.Auth;
+import io.dropwizard.auth.Authenticator;
+import io.dropwizard.auth.CachingAuthenticator;
+import io.dropwizard.auth.basic.BasicAuthProvider;
+import io.dropwizard.auth.basic.BasicCredentials;
+import io.dropwizard.setup.Environment;
+import org.apache.eagle.common.authentication.User;
+import 
org.apache.eagle.server.authentication.authenticator.LdapBasicAuthenticator;
+import 
org.apache.eagle.server.authentication.authenticator.SimpleBasicAuthenticator;
+import 
org.apache.eagle.server.authentication.config.AuthenticationSettings;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public class BasicAuthProviderBuilder {
+private static final String SIMPLE_MODE_REALM = 
"SIMPLE_AUTHENTICATION";
+private static final String LDAP_MODE_REALM = "LDAP_AUTHENTICATION";
+private static final Map MAPPING = 
new HashMap<>();
+private AuthenticationSettings authSettings;
+private Environment environment;
+
+public BasicAuthProviderBuilder(AuthenticationSettings authSettings, 
Environment environment) {
+this.authSettings = authSettings;
+this.environment = environment;
+Authenticator simpleAuthenticator = new 
SimpleBasicAuthenticator(authSettings.getSimple());
+Authenticator ldapAuthenticator = new 
LdapBasicAuthenticator(authSettings.getLdap());
+boolean needsCaching = authSettings.needsCaching();
--- End diff --

Better to register static object in static scope instead of in instance 
constructor, and move check `needsCaching` to `build` method.


> set authentication disabled by default when no 'auth' is configured in 
> configuration.yml
> 
>
> Key: EAGLE-621
> URL: https://issues.apache.org/jira/browse/EAGLE-621
> Project: Eagle
>  Issue Type: Task
>Reporter: Michael Wu
>Assignee: Michael Wu
>
> Eagle's authentication configuration is set in config file, and we need to 
> set auth-service as disabled by default, especially when there is no 'auth' 
> and descendant param set.
> Also this may affect auth registration code structure, it need refactoring.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[GitHub] incubator-eagle pull request #514: [EAGLE-621] set authentication disabled b...

2016-10-16 Thread haoch
Github user haoch commented on a diff in the pull request:

https://github.com/apache/incubator-eagle/pull/514#discussion_r83551893
  
--- Diff: 
eagle-server/src/main/java/org/apache/eagle/server/authentication/BasicAuthProviderBuilder.java
 ---
@@ -0,0 +1,61 @@
+package org.apache.eagle.server.authentication;
+
+import com.google.common.cache.CacheBuilderSpec;
+import com.sun.jersey.api.core.HttpContext;
+import com.sun.jersey.api.model.Parameter;
+import com.sun.jersey.core.spi.component.ComponentContext;
+import com.sun.jersey.server.impl.inject.AbstractHttpContextInjectable;
+import com.sun.jersey.spi.inject.Injectable;
+import io.dropwizard.auth.Auth;
+import io.dropwizard.auth.Authenticator;
+import io.dropwizard.auth.CachingAuthenticator;
+import io.dropwizard.auth.basic.BasicAuthProvider;
+import io.dropwizard.auth.basic.BasicCredentials;
+import io.dropwizard.setup.Environment;
+import org.apache.eagle.common.authentication.User;
+import 
org.apache.eagle.server.authentication.authenticator.LdapBasicAuthenticator;
+import 
org.apache.eagle.server.authentication.authenticator.SimpleBasicAuthenticator;
+import 
org.apache.eagle.server.authentication.config.AuthenticationSettings;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public class BasicAuthProviderBuilder {
+private static final String SIMPLE_MODE_REALM = 
"SIMPLE_AUTHENTICATION";
+private static final String LDAP_MODE_REALM = "LDAP_AUTHENTICATION";
+private static final Map MAPPING = 
new HashMap<>();
+private AuthenticationSettings authSettings;
+private Environment environment;
+
+public BasicAuthProviderBuilder(AuthenticationSettings authSettings, 
Environment environment) {
+this.authSettings = authSettings;
+this.environment = environment;
+Authenticator simpleAuthenticator = new 
SimpleBasicAuthenticator(authSettings.getSimple());
+Authenticator ldapAuthenticator = new 
LdapBasicAuthenticator(authSettings.getLdap());
+boolean needsCaching = authSettings.needsCaching();
--- End diff --

Better to register static object in static scope instead of in instance 
constructor, and move check `needsCaching` to `build` method.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Commented] (EAGLE-624) Installation Doc is not correctly shown in Installation Dialog

2016-10-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15580024#comment-15580024
 ] 

ASF GitHub Bot commented on EAGLE-624:
--

Github user asfgit closed the pull request at:

https://github.com/apache/incubator-eagle/pull/513


> Installation Doc is not correctly shown in Installation Dialog
> --
>
> Key: EAGLE-624
> URL: https://issues.apache.org/jira/browse/EAGLE-624
> Project: Eagle
>  Issue Type: Bug
>Affects Versions: v0.5.0
>Reporter: Hao Chen
>Assignee: Hao Chen
>  Labels: eagle-ui
> Fix For: v0.5.0
>
>
> h2. Improvements
> * Show dependencies apps number
> * Support XML child node tree as String in app docs
> * Cleanup eagle-server dependencies and output
> * Move business logic specific logics into dev profile
> * Rename header and remove pre fo installation content
> h2. Bugs
> * Fix siteName bug in ui
> * Installation Doc is not correctly shown in Installation Dialog



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[GitHub] incubator-eagle pull request #513: [EAGLE-624][UI] Improve ui information an...

2016-10-16 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/incubator-eagle/pull/513


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Commented] (EAGLE-621) set authentication disabled by default when no 'auth' is configured in configuration.yml

2016-10-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15580016#comment-15580016
 ] 

ASF GitHub Bot commented on EAGLE-621:
--

Github user haoch commented on the issue:

https://github.com/apache/incubator-eagle/pull/514
  
Very clear refactoring, LGTM.


> set authentication disabled by default when no 'auth' is configured in 
> configuration.yml
> 
>
> Key: EAGLE-621
> URL: https://issues.apache.org/jira/browse/EAGLE-621
> Project: Eagle
>  Issue Type: Task
>Reporter: Michael Wu
>Assignee: Michael Wu
>
> Eagle's authentication configuration is set in config file, and we need to 
> set auth-service as disabled by default, especially when there is no 'auth' 
> and descendant param set.
> Also this may affect auth registration code structure, it need refactoring.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[GitHub] incubator-eagle issue #514: [EAGLE-621] set authentication disabled by defau...

2016-10-16 Thread haoch
Github user haoch commented on the issue:

https://github.com/apache/incubator-eagle/pull/514
  
Very clear refactoring, LGTM.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Commented] (EAGLE-621) set authentication disabled by default when no 'auth' is configured in configuration.yml

2016-10-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15579994#comment-15579994
 ] 

ASF GitHub Bot commented on EAGLE-621:
--

GitHub user anyway1021 opened a pull request:

https://github.com/apache/incubator-eagle/pull/514

[EAGLE-621] set authentication disabled by default when no 'auth' is 
configured

Authentication settings are configured in configuration.yml file, starting 
with "auth" syntax. Now make the system see authentication as disabled when no 
auth related syntax is set.

Also, do some refactoring to make the code clearer.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/anyway1021/incubator-eagle EAGLE-621

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-eagle/pull/514.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #514


commit 377aaff0c2a70013427553fbab27153cf6b80afb
Author: anyway1021 
Date:   2016-10-16T13:32:05Z

set authentication disabled by default when no 'auth' is configured in 
configuration.yml




> set authentication disabled by default when no 'auth' is configured in 
> configuration.yml
> 
>
> Key: EAGLE-621
> URL: https://issues.apache.org/jira/browse/EAGLE-621
> Project: Eagle
>  Issue Type: Task
>Reporter: Michael Wu
>Assignee: Michael Wu
>
> Eagle's authentication configuration is set in config file, and we need to 
> set auth-service as disabled by default, especially when there is no 'auth' 
> and descendant param set.
> Also this may affect auth registration code structure, it need refactoring.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[GitHub] incubator-eagle pull request #514: [EAGLE-621] set authentication disabled b...

2016-10-16 Thread anyway1021
GitHub user anyway1021 opened a pull request:

https://github.com/apache/incubator-eagle/pull/514

[EAGLE-621] set authentication disabled by default when no 'auth' is 
configured

Authentication settings are configured in configuration.yml file, starting 
with "auth" syntax. Now make the system see authentication as disabled when no 
auth related syntax is set.

Also, do some refactoring to make the code clearer.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/anyway1021/incubator-eagle EAGLE-621

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-eagle/pull/514.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #514


commit 377aaff0c2a70013427553fbab27153cf6b80afb
Author: anyway1021 
Date:   2016-10-16T13:32:05Z

set authentication disabled by default when no 'auth' is configured in 
configuration.yml




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---