You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@falcon.apache.org by pa...@apache.org on 2016/05/25 13:13:51 UTC

falcon git commit: FALCON-1935 Falcon fails to start with default startup.properties

Repository: falcon
Updated Branches:
  refs/heads/master 234acfac5 -> d37872e81


FALCON-1935 Falcon fails to start with default startup.properties

\u2026nJPAService fails)

Author: Praveen Adlakha <ad...@gmail.com>

Reviewers: "Ying Zheng <yz...@hortonworks.com>, Pavan Kumar Kolamuri <pavan.kolamuri@gmail.com"

Closes #128 from PraveenAdlakha/1935


Project: http://git-wip-us.apache.org/repos/asf/falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/falcon/commit/d37872e8
Tree: http://git-wip-us.apache.org/repos/asf/falcon/tree/d37872e8
Diff: http://git-wip-us.apache.org/repos/asf/falcon/diff/d37872e8

Branch: refs/heads/master
Commit: d37872e8132fb22aaf791b4396c5a6e26086a62d
Parents: 234acfa
Author: Praveen Adlakha <ad...@gmail.com>
Authored: Wed May 25 18:43:23 2016 +0530
Committer: pavankumar526 <pa...@gmail.com>
Committed: Wed May 25 18:43:23 2016 +0530

----------------------------------------------------------------------
 docs/src/site/twiki/FalconDocumentation.twiki |  2 +-
 docs/src/site/twiki/FeedSLAMonitoring.twiki   | 27 ++++++++++++++++++++++
 src/conf/startup.properties                   |  5 +++-
 src/conf/statestore.properties                |  1 +
 4 files changed, 33 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/falcon/blob/d37872e8/docs/src/site/twiki/FalconDocumentation.twiki
----------------------------------------------------------------------
diff --git a/docs/src/site/twiki/FalconDocumentation.twiki b/docs/src/site/twiki/FalconDocumentation.twiki
index a8ea70d..4848746 100644
--- a/docs/src/site/twiki/FalconDocumentation.twiki
+++ b/docs/src/site/twiki/FalconDocumentation.twiki
@@ -821,7 +821,7 @@ Extensions is detailed in [[Extensions][Extensions]].
 
 ---++ Monitoring
 
-Monitoring and Operationalizing Falcon is detailed in [[Operability][Operability]].
+Monitoring and Operationalizing Falcon is detailed in [[Operability][Operability]] and [[FeedSLAMonitoring][Falcon Feed SLA Monitoring]].
 
 ---++ Email Notification
 Notification for instance completion in Falcon is defined in [[FalconEmailNotification][Falcon Email Notification]].

http://git-wip-us.apache.org/repos/asf/falcon/blob/d37872e8/docs/src/site/twiki/FeedSLAMonitoring.twiki
----------------------------------------------------------------------
diff --git a/docs/src/site/twiki/FeedSLAMonitoring.twiki b/docs/src/site/twiki/FeedSLAMonitoring.twiki
new file mode 100644
index 0000000..88132ce
--- /dev/null
+++ b/docs/src/site/twiki/FeedSLAMonitoring.twiki
@@ -0,0 +1,27 @@
+---++Falcon Feed SLA Monitoring
+
+Feed SLA monitoring allows you to monitor the feed ,It keeps track of the instances of the feed which are running and stores them in the db.
+
+Feed SLA monitoring service requires FalconJPAService to be up.Following are the values we need to set to run FeedSLAMonitoring -
+In startup.properties :
+
+*.application.services= org.apache.falcon.state.store.service.FalconJPAService,
+                        org.apache.falcon.service.FeedSLAMonitoringService
+
+These properties are required for FalconJPAService in statestore.properties:
+
+   * *falcon.state.store.impl* - org.apache.falcon.state.store.jdbc.JDBCStateStore
+   * *falcon.statestore.jdbc.driver*  -org.apache.derby.jdbc.EmbeddedDriver
+   * *falcon.statestore.jdbc.url* -jdbc:derby:target/test-data/data.db;create=true
+   * *falcon.statestore.connection.data.source*   -org.apache.commons.dbcp.BasicDataSource
+   Maximum number of active connections that can be allocated from this pool at the same time.
+   * *falcon.statestore.pool.max.active.conn* -10
+   * *falcon.statestore.connection.properties* -
+   Indicates the interval (in milliseconds) between eviction runs.
+   * *falcon.statestore.validate.db.connection.eviction.interval* -300000
+   The number of objects to examine during each run of the idle object evictor thread.
+   * *falcon.statestore.validate.db.connection.eviction.num*  -10
+   Creates Falcon DB. If set to true, it creates the DB schema if it does not exist. If the DB schema exists is a NOP.If set to false, it does not create the DB schema. If the DB schema does not exist it fails start up.
+   * *falcon.statestore.create.db.schema* -false
+
+Note: First time we have to manually create the schema in production as we have set falcon.statestore.create.db.schema = false
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/falcon/blob/d37872e8/src/conf/startup.properties
----------------------------------------------------------------------
diff --git a/src/conf/startup.properties b/src/conf/startup.properties
index 797b60e..1a2d411 100644
--- a/src/conf/startup.properties
+++ b/src/conf/startup.properties
@@ -42,7 +42,6 @@
 *.application.services=org.apache.falcon.security.AuthenticationInitializationService,\
                         org.apache.falcon.workflow.WorkflowJobEndNotificationService, \
                         org.apache.falcon.service.ProcessSubscriberService,\
-                        org.apache.falcon.service.FeedSLAMonitoringService,\
                         org.apache.falcon.service.LifecyclePolicyMap,\
                         org.apache.falcon.entity.store.ConfigurationStore,\
                         org.apache.falcon.rerun.service.RetryService,\
@@ -52,6 +51,10 @@
                         org.apache.falcon.service.GroupsService,\
                         org.apache.falcon.service.ProxyUserService,\
                         org.apache.falcon.extensions.ExtensionService
+##For feed SLA monitoring enable these two
+#                        org.apache.falcon.service.FalconJPAService,\
+#                        org.apache.falcon.service.FeedSLAMonitoringService,\
+
 ##Add if you want to send data to graphite
 #                        org.apache.falcon.metrics.MetricNotificationService\
 ## Add if you want to use Falcon Azure integration ##

http://git-wip-us.apache.org/repos/asf/falcon/blob/d37872e8/src/conf/statestore.properties
----------------------------------------------------------------------
diff --git a/src/conf/statestore.properties b/src/conf/statestore.properties
index ca98327..b08096e 100644
--- a/src/conf/statestore.properties
+++ b/src/conf/statestore.properties
@@ -46,3 +46,4 @@
 ## If set to false, it does not create the DB schema. If the DB schema does not exist it fails start up.
 ## In production environments it is recommended not to change this property,create schema using tool provided by falcon.
 #*.falcon.statestore.create.db.schema=false
+