svn diff somefile | vim -
Wednesday, February 20, 2013
Friday, February 15, 2013
Scala SBT
Requirements:
- Include scala-library.jar in the zip file because the machine may not have scala installed.
- Include scripts and configure files into the zip just like Maven assembly.
- Include the jar in the zip file.
Lessons:
- Key.
- SettingKey and TaskKey
- Cannot reference Key directory. Need to use tuple like this:
(sbt_key) => { key_val => }
- projectBin is the jar
- managed
- Must have a Project
- libraryDependencies and resolvers defined in Build not effect for the project
- IO.zip doesn't support permission of shell scripts
- Build with java code perfectly.
- custom cleanFiles
- Define a custom task like
dist
- Useful commands of sbt
settings // list settings keys tasks // list all tasks show clean-files // check value of settings keys inspect clean-files // check more information than show
HBase LeaseException issue
Excerpt from http://hbase.apache.org/book.html. If you google "hbase LeaseException", this page may not be on the first page.
12.5.2.
12.5.2. LeaseException
when calling Scanner.next
In some situations clients that fetch data from a RegionServer get a LeaseException instead of the usual Section 12.5.1, “ScannerTimeoutException or UnknownScannerException”. Usually the source of the exception is
org.apache.hadoop.hbase.regionserver.Leases.removeLease(Leases.java:230)
(line number may vary). It tends to happen in the context of a slow/freezing RegionServer#next call. It can be prevented by having hbase.rpc.timeout
> hbase.regionserver.lease.period
. Harsh J investigated the issue as part of the mailing list thread HBase, mail # user - Lease does not exist exceptions
Subscribe to:
Posts (Atom)