public static void main(String[] args)
{
ZkClient zkClient = new ZkClient("localhost:2181");
zkClient.waitUntilConnected(10, TimeUnit.SECONDS);
BaseDataAccessor baseDataAccessor = new ZkBaseDataAccessor(zkClient);
HelixDataAccessor accessor =
new ZKHelixDataAccessor("test-cluster", baseDataAccessor);
Builder builder = new PropertyKey.Builder("test-cluster");
HelixProperty value = new IdealState("test-resource");
accessor.createProperty(builder.idealStates("test-resource"), value);