[MINOR] Improve description (#2113)
This commit is contained in:
@@ -97,8 +97,7 @@ public class Metrics {
|
|||||||
guage.setValue(value);
|
guage.setValue(value);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// Here we catch all exception, so the major upsert pipeline will not be affected if the
|
// Here we catch all exception, so the major upsert pipeline will not be affected if the
|
||||||
// metrics system
|
// metrics system has some issues.
|
||||||
// has some issues.
|
|
||||||
LOG.error("Failed to send metrics: ", e);
|
LOG.error("Failed to send metrics: ", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,6 @@ public class ExampleDataSchemaProvider extends SchemaProvider {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Schema getSourceSchema() {
|
public Schema getSourceSchema() {
|
||||||
return org.apache.hudi.examples.common.HoodieExampleDataGenerator.avroSchema;
|
return HoodieExampleDataGenerator.avroSchema;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,8 +51,10 @@ import java.util.stream.Collectors;
|
|||||||
* Simple examples of #{@link HoodieWriteClient}.
|
* Simple examples of #{@link HoodieWriteClient}.
|
||||||
*
|
*
|
||||||
* To run this example, you should
|
* To run this example, you should
|
||||||
* 1. For running in IDE, set VM options `-Dspark.master=local[2]`
|
* <pre>
|
||||||
* 2. For running in shell, using `spark-submit`
|
* 1. For running in IDE, set VM options `-Dspark.master=local[2]`;
|
||||||
|
* 2. For running in shell, using `spark-submit`.
|
||||||
|
*</pre>
|
||||||
*
|
*
|
||||||
* Usage: HoodieWriteClientExample <tablePath> <tableName>
|
* Usage: HoodieWriteClientExample <tablePath> <tableName>
|
||||||
* <tablePath> and <tableName> describe root path of hudi and table name
|
* <tablePath> and <tableName> describe root path of hudi and table name
|
||||||
|
|||||||
Reference in New Issue
Block a user