HADOOP-14281. Fix TestKafkaMetrics#testPutMetrics. Contributed by Alison Yu.
This commit is contained in:
parent
dcc292d7de
commit
b062b323b7
|
@ -155,7 +155,7 @@ public class TestKafkaMetrics {
|
||||||
Date currDate = new Date(timestamp);
|
Date currDate = new Date(timestamp);
|
||||||
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
String date = dateFormat.format(currDate);
|
String date = dateFormat.format(currDate);
|
||||||
SimpleDateFormat timeFormat = new SimpleDateFormat("hh:mm:ss");
|
SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm:ss");
|
||||||
String time = timeFormat.format(currDate);
|
String time = timeFormat.format(currDate);
|
||||||
String hostname = new String("null");
|
String hostname = new String("null");
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue