mirror of
https://github.com/apache/sqoop.git
synced 2025-05-21 03:10:49 +08:00

Added SessionStorage API. Added SessonData API. Added SessionStorageFactory. Added SessionTool for create/delete/execute/show/list operations on sessions. SqoopOptions can read and write all "sticky" state to a Properties instance. Added HsqldbSessionStorage to implement SessionStorage API. Added AutoHsqldbStorage to auto-instantiate a local metastore for the user. Added client metastore connection parameters to sqoop-site.xml. Added metastore tool (MetastoreTool). Added HsqldbMetaStore for standalone metastore instance. Added metastore properties to sqoop-default.xml. Added TestSessions unit tests of session API. Renamed conf/sqoop-default.xml to conf/sqoop-site-template.xml. Added conf/.gitignore for sqoop-site.xml. Tests run: Tested all metastore operations on an import session. Tested that ~/.sqoop/-based storage will be auto-created by the metastore. Tested that 'sqoop metastore'-based metastores can be connected to by external clients. Tested that 'sqoop metastore --shutdown' will gracefully shut down a running metastore instance. Tested that passwords are not stored in the metastore by default, and the user is prompted for the password when executing that saved session. From: Aaron Kimball <aaron@cloudera.com> git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149940 13f79535-47bb-0310-9956-ffa450edef68
76 lines
2.8 KiB
XML
76 lines
2.8 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
Licensed to Cloudera, Inc. under one or more
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
this work for additional information regarding copyright ownership.
|
|
Cloudera, Inc. licenses this file 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.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
|
|
<!--
|
|
This file enumerates all the findbugs warnings that we want to suppress.
|
|
If you add a spurious warning, you should add it to this file so that it
|
|
does not generate warnings in the official report.
|
|
|
|
For each exception you add, include a comment in your <Match> block
|
|
explaining why this is not a bug.
|
|
-->
|
|
<FindBugsFilter>
|
|
<Match>
|
|
<!-- SQL db can return null for a boolean column; so can we. -->
|
|
<Class name="com.cloudera.sqoop.lib.JdbcWritableBridge" />
|
|
<Method name="readBoolean" />
|
|
<Bug pattern="NP_BOOLEAN_RETURN_NULL" />
|
|
</Match>
|
|
<Match>
|
|
<!-- This mapper intentially triggers an NPE to cause an exception
|
|
which the test case much catch. -->
|
|
<Class name="com.cloudera.sqoop.mapreduce.TestImportJob$NullDereferenceMapper" />
|
|
<Method name="map" />
|
|
<Bug pattern="NP_ALWAYS_NULL" />
|
|
</Match>
|
|
<Match>
|
|
<!-- createRootTable() allows a user-specified table name retrieved
|
|
from properties. This since instance is allowed for now.
|
|
-->
|
|
<Class name="com.cloudera.sqoop.metastore.hsqldb.HsqldbSessionStorage" />
|
|
<Method name="createRootTable" />
|
|
<Bug pattern="SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE" />
|
|
</Match>
|
|
|
|
<!-- The following broad categories suppress warnings in test code that do
|
|
not need to be rigidly upheld. -->
|
|
<Match>
|
|
<!-- Performance warnings are ignored in test code. -->
|
|
<Class name="~com\.cloudera\.sqoop\..*Test.*" />
|
|
<Bug category="PERFORMANCE" />
|
|
</Match>
|
|
<Match>
|
|
<!-- More performance warnings to suppress in tests. -->
|
|
<Class name="~com\.cloudera\.sqoop\..*Test.*" />
|
|
<Bug pattern="SBSC_USE_STRINGBUFFER_CONCATENATION" />
|
|
</Match>
|
|
<Match>
|
|
<!-- Security warnings are ignored in test code. -->
|
|
<Class name="~com\.cloudera\.sqoop\..*Test.*" />
|
|
<Bug category="SECURITY" />
|
|
</Match>
|
|
<Match>
|
|
<!-- Ok to use methods to generate SQL statements in tests. -->
|
|
<Class name="~com\.cloudera\.sqoop\..*Test.*" />
|
|
<Bug pattern="SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING" />
|
|
</Match>
|
|
|
|
</FindBugsFilter>
|