String url,
Path inputPath,
AdminClient adminClient) throws IOException {
// create new json store def with schema from the metadata in the input
// path
JsonSchema schema = HadoopUtils.getSchemaFromPath(inputPath);
int replicationFactor = props.getInt("build.replication.factor." + storeName,
props.getInt("build.replication.factor", 2));
int requiredReads = props.getInt("build.required.reads." + storeName,
props.getInt("build.required.reads", 1));
int requiredWrites = props.getInt("build.required.writes." + storeName,
props.getInt("build.required.writes", 1));
int preferredReads = props.getInt("build.preferred.reads." + storeName,
props.getInt("build.preferred.reads", -1));
int preferredWrites = props.getInt("build.preferred.writes." + storeName,
props.getInt("build.preferred.writes", -1));
String description = props.getString("push.store.description." + storeName,
props.getString("push.store.description", ""));
String owners = props.getString("push.store.owners." + storeName,
props.getString("push.store.owners", ""));
// Generate the key and value schema
String keySchema = "\n\t\t<type>json</type>\n\t\t<schema-info version=\"0\">"
+ schema.getKeyType() + "</schema-info>\n\t";
String valSchema = "\n\t\t<type>json</type>\n\t\t<schema-info version=\"0\">"
+ schema.getValueType() + "</schema-info>\n\t";
String keySchemaCompression = "";
if(props.containsKey("build.compress.key." + storeName)
|| (storeNames.size() == 1 && props.containsKey("build.compress.key"))) {
keySchemaCompression = "\t<compression><type>gzip</type></compression>\n\t";