Skip to content

Commit

Permalink
run spotless:apply
Browse files Browse the repository at this point in the history
  • Loading branch information
Apache9 committed Jun 22, 2024
1 parent ca921f2 commit dea6b05
Show file tree
Hide file tree
Showing 71 changed files with 387 additions and 429 deletions.
4 changes: 2 additions & 2 deletions bin/start-hbase.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if "%distMode%"=="false" (
if "%distMode%"=="true" (
@echo This is not implemented yet. Stay tuned.
@rem call %HBASE_BIN_PATH%\hbase-daemons.cmd --config "${HBASE_CONF_DIR}" start zookeeper
@rem call %HBASE_BIN_PATH%\hbase-daemon.cmd --config "${HBASE_CONF_DIR}" start master
@rem call %HBASE_BIN_PATH%\hbase-daemon.cmd --config "${HBASE_CONF_DIR}" start master

@rem call %HBASE_BIN_PATH%\hbase-daemons.cmd --config "%HBASE_CONF_DIR%" --hosts "%HBASE_REGIONSERVERS%" start regionserver
@rem call %HBASE_BIN_PATH%\hbase-daemons.cmd --config "%HBASE_CONF_DIR%" --hosts "%HBASE_BACKUP_MASTERS%" start master-backup
Expand All @@ -58,4 +58,4 @@ if "%distMode%"=="false" (

@rem -------------- End of main script --------------
endlocal
goto :eof
goto :eof
2 changes: 1 addition & 1 deletion bin/stop-hbase.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ if "%distMode%"=="false" (

@rem -------------- End of main script --------------
endlocal
goto :eof
goto :eof
2 changes: 1 addition & 1 deletion conf/hbase-env.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
@rem The maximum amount of heap to use. Default is left to JVM default.
@rem set HBASE_HEAPSIZE=1000

@rem Uncomment below if you intend to use off heap cache. For example, to allocate 8G of
@rem Uncomment below if you intend to use off heap cache. For example, to allocate 8G of
@rem offheap, set the value to "8G".
@rem set HBASE_OFFHEAPSIZE=1000

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,5 +253,3 @@ which have hardened over years can be marked IS.Stable.
“getService()” method. So WALCoprocessor which cannot support service doesn’t have one. That may
look minor thing. But if our design can cleanly convey what is and isn’t supported, that’s beautiful
and powerful and helpful for downstream developers.


Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,3 @@ Given this compatibility matrix,
* Mini clusters tests simulating real world scenarios (like stale meta/master etc) should be added.
* Consider making this the default registry implementation and let the code bakein for a while before release.
* Deploy the bits on a real distributed cluster and test a long running application that is heavy on these RPCs and inject faults.
8 changes: 4 additions & 4 deletions hbase-examples/src/main/cpp/DemoClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ printRow(const std::vector<TRowResult> &rowResult)
{
for (size_t i = 0; i < rowResult.size(); i++) {
std::cout << "row: " << rowResult[i].row << ", cols: ";
for (CellMap::const_iterator it = rowResult[i].columns.begin();
for (CellMap::const_iterator it = rowResult[i].columns.begin();
it != rowResult[i].columns.end(); ++it) {
std::cout << it->first << " => " << it->second.value << "; ";
}
Expand All @@ -70,8 +70,8 @@ printVersions(const std::string &row, const CellVec &versions)

}

int
main(int argc, char** argv)
int
main(int argc, char** argv)
{
if (argc < 3) {
std::cerr << "Invalid arguments!\n" << "Usage: DemoClient host port" << std::endl;
Expand Down Expand Up @@ -222,7 +222,7 @@ main(int argc, char** argv)
client.getRow(rowResult, t, row, dummyAttributes);
printRow(rowResult);

// sleep to force later timestamp
// sleep to force later timestamp
poll(0, 0, 50);

mutations.clear();
Expand Down
1 change: 0 additions & 1 deletion hbase-examples/src/main/cpp/gen-cpp/Hbase.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion hbase-examples/src/main/cpp/gen-cpp/Hbase_constants.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,3 @@ int main(int argc, char **argv) {
server.serve();
return 0;
}

11 changes: 5 additions & 6 deletions hbase-examples/src/main/perl/DemoClient.pl
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down Expand Up @@ -199,14 +199,14 @@ ($)
$mutations = [
Hbase::Mutation->new ( { column => "entry:num", value => "0" } ),
Hbase::Mutation->new ( { column => "entry:foo", value => "FOO" } ),
];
];
$client->mutateRow ( $demo_table, $row, $mutations, %dummy_attributes );
printRow ( $client->getRow ( $demo_table, $row, %dummy_attributes ) );

$mutations = [
Hbase::Mutation->new ( { column => "entry:foo", isDelete => 1 } ),
Hbase::Mutation->new ( { column => "entry:num", value => -1 } ),
];
];
$client->mutateRow ( $demo_table, $row, $mutations, %dummy_attributes );
printRow ( $client->getRow ( $demo_table, $row, %dummy_attributes ) );

Expand All @@ -217,7 +217,7 @@ ($)
$client->mutateRow ( $demo_table, $row, $mutations, %dummy_attributes );
printRow ( $client->getRow ( $demo_table, $row, %dummy_attributes ) );

$mutations = [
$mutations = [
Hbase::Mutation->new ( { column => "entry:num", value => -999 } ),
Hbase::Mutation->new ( { column => "entry:sqr", isDelete => 1 } ),
];
Expand Down Expand Up @@ -285,4 +285,3 @@ ($)
$transport->close ();

exit 0;

Loading

0 comments on commit dea6b05

Please sign in to comment.