This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Sun, 06 Jun 2010 20:20:44 -0400] WARN: HTTP Request Returned 500 Internal Server Error: 400 "orgapachelucenequeryParserParseException_Cannot_parse___or__not_allowed_as_first_character_in_WildcardQuery" | |
/usr/lib/ruby/1.8/net/http.rb:2097:in `error!': 500 "Internal Server Error" (Net::HTTPFatalError) | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/rest.rb:216:in `api_request' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/rest.rb:267:in `retriable_rest_request' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/rest.rb:197:in `api_request' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/rest.rb:100:in `get_rest' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/search/query.rb:37:in `search' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/mixin/language.rb:86:in `search' | |
from /var/cache/chef/cookbooks/ssh_known_hosts/recipes/default.rb:21:in `from_file' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/cookbook.rb:171: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/resource/directory.rb:60:in `owner' | |
... 26 levels... | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/application.rb:62:in `run' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<title>Timeout Test</title> | |
</head> | |
<body> | |
<div>Header</div> | |
<div id='timeout1'></div> | |
<div id='timeout2'></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static class UserHABModule implements Module { | |
static final byte[] COLUMN_FAMILY = Bytes.toBytes("profile"); | |
static final byte[] TABLE = Bytes.toBytes("test_user"); | |
static final byte[] SCHEMA_TABLE = Bytes.toBytes("test_schema"); | |
public static final HBaseAdmin admin; | |
static { | |
try { | |
admin = new HBaseAdmin(new HBaseConfiguration()); | |
} catch (MasterNotRunningException e) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type":"record", | |
"name":"User", | |
"namespace":"example", | |
"fields": [ | |
{"name":"firstName", "type":"string", "default": ""}, | |
{"name":"lastName", "type":"string", "default": ""}, | |
{"name":"email","type":"string","default": ""}, | |
{"name":"password", "type":"bytes", "default": ""}] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AvroBase<User> userHAB = AvroBaseFactory.createAvroBase( | |
new UserHABModule(), HAB.class, | |
TABLE, COLUMN_FAMILY, AvroFormat.BINARY); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User saved = new User(); | |
saved.firstName = new Utf8("Sam"); | |
saved.lastName = new Utf8("Pullara"); | |
saved.email = new Utf8("spullara@yahoo.com"); | |
saved.password = ByteBuffer.wrap(new Utf8("").getBytes()); | |
byte[] row = Bytes.toBytes("spullara"); | |
userHAB.put(row, saved); | |
Row<User> loaded = userHAB.get(row); | |
Iterable<Row<User>> searched = userHAB.search("firstName:Sam"); | |
userHAB.delete(row); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AvroJsonEncoder extends JsonEncoder { | |
private Parser parser; | |
private JsonGenerator out; | |
private static Field parserField; | |
static { | |
try { | |
parserField = JsonEncoder.class.getDeclaredField("parser"); | |
parserField.setAccessible(true); | |
} catch (Exception e) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2010-07-26 19:41:01,193 DEBUG org.apache.hadoop.hbase.master.RegionManager: Adding operation TABLE_FLUSH from tasklist | |
2010-07-26 19:41:02,105 DEBUG org.apache.hadoop.hbase.master.RegionManager: Sending MSG_REGION_FLUSH REGION => {NAME => 'bag,,1280187157796.b8aa093b5e18084fb09471e8da7e6654.', STARTKEY => '', ENDKEY => '', ENCODED => b8aa093b5e18084fb09471e8da7e6654, TABLE => {{NAME => 'bag', FAMILIES => [{NAME => 'category', BLOOMFILTER => 'NONE', REPLICATION_SCOPE => '0', VERSIONS => '1', COMPRESSION => 'LZO', TTL => '2147483647', BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'}, {NAME => 'data', BLOOMFILTER => 'NONE', REPLICATION_SCOPE => '0', VERSIONS => '1', COMPRESSION => 'LZO', TTL => '2147483647', BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'}]}} to 10.162.243.193:60020 | |
hbase(main):004:0* quit | |
[root@ip-10-162-243-193 hbasestorage]# find bag | |
bag | |
bag/b8aa093b5e18084fb09471e8da7e6654 | |
bag/b8aa093b5e18084fb09471e8da7e6654/.tmp | |
bag/b8aa093b5e18084fb09471e8da7e6654/.tmp/5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i7:hbasestorage sam$ find schema | |
schema | |
schema/b3853dd37ab6a8e64fb56e72b0a6fb1b | |
schema/b3853dd37ab6a8e64fb56e72b0a6fb1b/..regioninfo.crc | |
schema/b3853dd37ab6a8e64fb56e72b0a6fb1b/.oldlogs | |
schema/b3853dd37ab6a8e64fb56e72b0a6fb1b/.oldlogs/.hlog.1279236292929.crc | |
schema/b3853dd37ab6a8e64fb56e72b0a6fb1b/.oldlogs/hlog.1279236292929 | |
schema/b3853dd37ab6a8e64fb56e72b0a6fb1b/.regioninfo | |
schema/b3853dd37ab6a8e64fb56e72b0a6fb1b/avro | |
i7:hbasestorage sam$ |