Thursday, May 30, 2013

DSE cassandra: dangerous command apt-get upgrade

there 're an error when upgrade version 1.1.11. to version 1.2.4 in cassandra
si por algun casual se te ocurre actualizar el sistema de cassandra de la version 1.1.11 a la version 1.2.4, te encontraras con el siguiente error
INFO [main] 2012-04-17 12:12:02,065 AbstractCassandraDaemon.java (line 105) Logging initialized
INFO [main] 2012-04-17 12:12:02,123 DatabaseDescriptor.java (line 116) Loading settings from file:/home/vensocia/datastax/resources/cassandra/conf/cassandra.yaml
ERROR [main] 2012-04-17 12:12:02,216 DatabaseDescriptor.java (line 448) Fatal configuration error error
while parsing a block mapping
in "", line 10, column 1:
cluster_name: 'Test Cluster'
^
expected , but found BlockMappingStart
dont modify the file cassandra.yaml
No te vuelvas loco modificando el fichero cassandra.yaml. Tienes dos opciones sigue las instrucciones de http://www.datastax.com/docs/datastax_enterprise2.0/upgrading_dse o revierte los cambios. execute command to show cassandra version
ejecuta el comando para ver que versión de cassandra tienes
dpkg -s cassandra
and make a rollback
y vuelve a dejarlo todo como estaba con la instruccion
sudo apt-get install dsc1.1 

Wednesday, March 20, 2013

Solandra install

download git and gittortoise download solandra form https://github.com/tjake/Solandra.git with cloneRepository download and install maven3 http://maven.apache.org/download.cgi and configure settings repository and proxy prerequisites jdk, mvn configure java_home 1.6 jdk, (note that java7 don`t work) and mvn_home download and put in directory Solandra\reuters-demo app curl http://curl.haxx.se/latest.cgi?curl=win64-nossl modify bach file Solandra\reuters-demo

Cassandra-cli command

Select database or keyspace [default@unknown] USE demo; List all user of database demo with limit 100 , if change limit bigint the cassandra-cli colapse. [default@demo] LIST users; http://www.datastax.com/docs/0.8/dml/using_cli list all keyspace [default@unknown] show keyspace;

Thursday, January 17, 2013

Make inference with pellet in Virtuoso


  set = new VirtGraph(GraphIri, "jdbc:virtuoso://" + uriServer + ":"
    + portJDBC + "", db_user, db_pass);
  vd = new VirtDataSource("jdbc:virtuoso://" + uriServer + ":" + portJDBC
    + "", db_user, db_pass);
  System.out.println("Start inference!");
  Reasoner reasoner = PelletReasonerFactory.theInstance().create();
  reasoner = reasoner.bindSchema(set);
  infModel = ModelFactory.createInfModel(reasoner, modelVirtuoso);
  System.out.println("Stop inference!");
  Model m2 = vd.getNamedModel(GraphIri);
  Model inferido = infModel.difference(m2);
  m2.add(inferido);

Tuesday, January 8, 2013

good examples of Dependence Injections

The first link is a simple tutorial Start
The second is a interesting aplication of AOP Interceptions and the last are Scope Scopes

Thursday, December 13, 2012

maven: HOW external resource extract from artefactory.jar

I want to extract some resource form artefactory to used in other proyect, we need 2 plugins maven-dependency-plugin to extract and maven-clean-plugin to clean proyect. call first plugin execute the goal dependency:unpack.

   
    org.apache.maven.plugins
    maven-dependency-plugin
    2.6
    
     
      
       ${project.groupId}
       com.company.artefactory
       ${project.version}
       jar
       true
       directoryInsideJar/**/*.*
       src/main/resources
      
     
     
    
   
   
    maven-clean-plugin
    2.5
    
     
      
       src/main/resources/directoryInsideJar/
      
     
    
   

Thursday, November 29, 2012

Repository rejected artifact "due to its snapshot/release handling policy."

I'm a newbie in proxy maven server management. I have a problem with download own artefactory from my maven server. To solver this problem put this in your pom.xml [1]http://forums.jfrog.org/Repository-rejected-artifact-quot-due-to-its-snapshot-release-handling-policy-quot-td6513457.html

  
   ubuntu-releases
   ubuntu-releases
   http://serverMaven:8080/artifactory/libs-release-local
   
    interval:1
   
  
  
   ubuntu-snapshots
   ubuntu-snapshots
   http://serverMaven:8080/artifactory/libs-snapshot-local
   
    false
   
   
    true
    interval:1