Hi Xikui, The error is happening because Node.java is an auto-generated class and it appears that you have an old version in your local maven repository.
If you checkout a clean HEAD version and do ‘mvn clean install’, it should work. Cheers, Murtadha > On Mar 23, 2016, at 1:26 PM, Xikui Wang <[email protected]> wrote: > > Hi, > > I met a problem when compiling the head version. I think it's because > certain method is missing in the Node.java. Here are the error message: > > $PATH/incubator-asterixdb/asterix-common/src/main/java/org/apache/asterix/common/config/AsterixReplicationProperties.java >> Error:(84, 32) java: cannot find symbol >> symbol: method getReplicationPort() >> location: variable node of type >> org.apache.asterix.event.schema.cluster.Node >> Error:(84, 68) java: cannot find symbol >> symbol: method getReplicationPort() >> location: variable node of type >> org.apache.asterix.event.schema.cluster.Node > > > Here are the git diffs I got with one of the previous version I have: > > index cb7bcab..5d31d9a 100644 >> --- >> a/asterix-common/src/main/java/org/apache/asterix/common/config/AsterixReplicationProperties.java >> +++ >> b/asterix-common/src/main/java/org/apache/asterix/common/config/AsterixReplicationProperties.java >> @@ -77,10 +77,15 @@ public class AsterixReplicationProperties extends >> AbstractAsterixProperties { >> } >> public int getDataReplicationPort(String nodeId) { >> - if (cluster != null) { >> - return >> cluster.getDataReplication().getReplicationPort().intValue(); >> + if (cluster != null && cluster.getDataReplication() != null) { >> + for (int i = 0; i < cluster.getNode().size(); i++) { >> + Node node = cluster.getNode().get(i); >> + if (getRealCluserNodeID(node.getId()).equals(nodeId)) { >> + return node.getReplicationPort() != null ? >> node.getReplicationPort().intValue() >> + : >> cluster.getDataReplication().getReplicationPort().intValue(); >> + } >> + } >> } >> - >> return REPLICATION_DATAPORT_DEFAULT; >> } > > > Thank you. > > Best, > Xikui
