[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Messages posted by: torman  XML
Profile for torman -> Messages posted by torman [11]
Author Message
Hello,

I'm trying to find a way to set path values using System properties.

As I understand there's no way to use environment properties (which is sad) and only the following options are supported:
  • default tc.properties
  • tc-config.xml
  • local, or user-created tc.properties in Terracotta lib directory
  • Java system properties set with -D

    So I've tried to define a property in tc-config.xml like this:
    Code:
    	<tc-properties>
     		<property name="TC.DATA" value="C:\java\terracotta-data"/>
     	</tc-properties>

    And then use it:
    Code:
    	<servers>
     		<server host="localhost" name="Cache1" bind="0.0.0.0">
     			<data>%(TC.DATA)\server1\data</data>
     			<logs>%(TC.DATA)\server1\logs</logs>

    But it doesn't seem to work (a new folder named %(TC.DATA) is being created at a different location)..

    Is there anything I'm doing wrong?
  • Ok, so it's going to run in clustered mode by default if I'm using TerracottaJobStore, correct?

    http://terracotta.org/documentation/quartz-scheduler/installation-guide refers to EnterpriseTerracottaJobStore (not available in the open source version). Does the same apply for TerracottaJobStore?
    Thank you for a reply!

    Unfortunatelly I don't see any reference to the fact that clustering is not working for TerracottaJobStore. According to the link that you provided for configuring TerracottaJobStore http://quartz-scheduler.org/documentation/quartz-2.1.x/configuration/ConfigTerracottaJobStore TerracottaJobStore is much more performant than utilizing a database for storing scheduling data (via JDBC-JobStore), and yet offers clustering features such as load-balancing and fail-over.

    Please let me know if it's the documentation that's not right or I'm getting it wrong somehow.
    Yeah, I've seen a comparison chart too..

    Just wondering how other users are using the open source version given that unsecured Dev Console provides too much exposure.
    For Open Source Terracotta, is there a way to secure the acces to Dev Console or it's only available in a paid version?
    Hi all,

    I want to run Quartz scheduler in a clustered environment so that only one node is running a job.

    Here's my config:

    Code:
     	    <property name="quartzProperties">
     	    	<props>				
     				<prop key="org.quartz.jobStore.class">org.terracotta.quartz.TerracottaJobStore</prop>
     				<prop key="org.quartz.jobStore.tcConfigUrl">localhost:9510,localhost:9511,localhost:9512</prop>
     				<prop key="org.quartz.jobStore.isClustered">true</prop>
     				<prop key="org.quartz.scheduler.skipUpdateCheck">true</prop>
     				<prop key="org.terracotta.quartz.skipUpdateCheck">true</prop>
     			</props>
     	    </property>


    I'm getting the following error saying that isClustered property is not available for TerracottaJobStore:

    Code:
     Caused by: org.quartz.SchedulerException: JobStore class 'org.terracotta.quartz.TerracottaJobStore' props could not be configured. [See nested exception: java.lang.NoSuchMethodException: No setter for property 'isClustered']
     	at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:850)
     	at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1484)
     	at org.springframework.scheduling.quartz.SchedulerFactoryBean.createScheduler(SchedulerFactoryBean.java:598)
     	at org.springframework.scheduling.quartz.SchedulerFactoryBean.afterPropertiesSet(SchedulerFactoryBean.java:479)
     	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
     	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
     	... 81 more
     Caused by: java.lang.NoSuchMethodException: No setter for property 'isClustered'
     	at org.quartz.impl.StdSchedulerFactory.setBeanProps(StdSchedulerFactory.java:1372)
     	at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:848)
     	... 86 more


    Here's the versions of Quartz & Terracotta Quartz:
    Code:
     		<dependency>
     			<groupId>org.quartz-scheduler</groupId>
     			<artifactId>quartz</artifactId>
     			<version>2.1.6</version>
     		</dependency>
     		<dependency>
     			<groupId>org.terracotta.quartz</groupId>
     			<artifactId>quartz-terracotta</artifactId>
     			<version>2.2.7</version>
     		</dependency>


    Is there anything I'm doing wrong?

    org.quartz.jobStore.isClustered property should be availabe for TerracottaJobStore as per this link: http://quartz-scheduler.org/documentation/quartz-1.x/tutorials/TutorialLesson11
    For Open Source Terracotta, is there a way to secure the acces by Dev Console? It seems to be pretty vulnerable to keep it open.
    Sure, we will stay tuned for this!

    If you guys are retiring SVT I guess it makes sense to remove any reference to it from lots of documentations including http://terracotta.org/documentation/bigmemorymax/terracotta-tools/dev-console#29776 and http://terracotta.org/documentation/bigmemorymax/terracotta-tools/dev-console#29776.

    And also remove Cluster statistics recorder and Tools\Show SVT from the Developer Console as there's no use of it.
    Thanks!

    So there's currently no way to see the cluster statistics that can be recorded via the Cluster statistics recorder? What's the point to record it in this case? It seems to be pretty usefult feature as it allows to show the stats recorded within a certain time frame and show it graphically...
    Basically I want to see the statistics that has been recorded in Terraccotta Developer Console.

    Documentation says that this should be available using the Snapshot Visualization Tool (SVT): http://terracotta.org/documentation/3.6/terracotta-tools/dev-console#29776

    I tried to install it as per the following instructions: http://terracotta.org/confluence/display/docs/Get+The+Snapshot+Visualization+Tool but didn't succeed.
    Hi all,

    I can't see the cluster statistics from within Terraccotta Developer Console. When I click on the View button I get forwarded to http://www.terracotta.org/kit/reflector?kitID=3.7.2&pageID=GetSVT and nothing happens afterwards.. I tried to install SVT using tim-get but tim-svt is not listed as an option there.. Installed --all but didn't help.
    Is there any other way to get SVT installed?

    Terracotta 3.6.5, as of 20121019-130238 (Revision 21031 by cruise@su10vmo125 from 3.6.5)

    Thanks,
    Andriy
     
    Profile for torman -> Messages posted by torman [11]
    Go to:   
    Powered by JForum 2.1.7 © JForum Team