Skip to content

Commit 15b1fe3

Browse files
committed
the modification of comments
1 parent 5cbbcfc commit 15b1fe3

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

examples/src/main/python/hbase_inputformat.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,24 @@
2626
hbase(main):016:0> create 'test', 'f1'
2727
0 row(s) in 1.0430 seconds
2828
29-
hbase(main):017:0> put 'test', 'row1', 'f1', 'value1'
29+
hbase(main):017:0> put 'test', 'row1', 'f1:a', 'value1'
3030
0 row(s) in 0.0130 seconds
3131
32-
hbase(main):018:0> put 'test', 'row2', 'f1', 'value2'
32+
hbase(main):018:0> put 'test', 'row1', 'f1:b', 'value2'
3333
0 row(s) in 0.0030 seconds
3434
35-
hbase(main):019:0> put 'test', 'row3', 'f1', 'value3'
35+
hbase(main):019:0> put 'test', 'row2', 'f1', 'value3'
3636
0 row(s) in 0.0050 seconds
3737
38-
hbase(main):020:0> put 'test', 'row4', 'f1', 'value4'
38+
hbase(main):020:0> put 'test', 'row3', 'f1', 'value4'
3939
0 row(s) in 0.0110 seconds
4040
4141
hbase(main):021:0> scan 'test'
4242
ROW COLUMN+CELL
43-
row1 column=f1:, timestamp=1401883411986, value=value1
44-
row2 column=f1:, timestamp=1401883415212, value=value2
45-
row3 column=f1:, timestamp=1401883417858, value=value3
46-
row4 column=f1:, timestamp=1401883420805, value=value4
43+
row1 column=f1:a, timestamp=1401883411986, value=value1
44+
row1 column=f1:b, timestamp=1401883415212, value=value2
45+
row2 column=f1:, timestamp=1401883417858, value=value3
46+
row3 column=f1:, timestamp=1401883420805, value=value4
4747
4 row(s) in 0.0240 seconds
4848
"""
4949
if __name__ == "__main__":

examples/src/main/scala/org/apache/spark/examples/pythonconverters/HBaseConverters.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class HBaseResultToStringConverter extends Converter[Any, String] {
3535
import collection.JavaConverters._
3636
val result = obj.asInstanceOf[Result]
3737
val output = result.listCells.asScala.map(cell =>
38-
"{'columnFamliy':'%s','qualifier':'%s','timestamp':'%s','type':'%s','value':'%s'}".format(
38+
"{'columnFamily':'%s','qualifier':'%s','timestamp':'%s','type':'%s','value':'%s'}".format(
3939
Bytes.toStringBinary(CellUtil.cloneFamily(cell)),
4040
Bytes.toStringBinary(CellUtil.cloneQualifier(cell)),
4141
cell.getTimestamp.toString,

0 commit comments

Comments
 (0)