| /** |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF 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. |
| */ |
| |
| package org.apache.tajo.storage.s3; |
| |
| /** |
| * Borrow from org.apache.hadoop.fs.s3a.TajoS3Constants. |
| * |
| */ |
| public class TajoS3Constants { |
| // s3 access key |
| public static final String ACCESS_KEY = "fs.s3a.access.key"; |
| |
| // s3 secret key |
| public static final String SECRET_KEY = "fs.s3a.secret.key"; |
| |
| //use a custom endpoint? |
| public static final String ENDPOINT = "fs.s3a.endpoint"; |
| |
| // number of times we should retry errors |
| public static final String MAX_ERROR_RETRIES = "fs.s3a.attempts.maximum"; |
| public static final int DEFAULT_MAX_ERROR_RETRIES = 10; |
| |
| // connect to s3 over ssl? |
| public static final String SECURE_CONNECTIONS = "fs.s3a.connection.ssl.enabled"; |
| public static final boolean DEFAULT_SECURE_CONNECTIONS = true; |
| |
| // seconds until we give up trying to establish a connection to s3 |
| public static final String ESTABLISH_TIMEOUT = "fs.s3a.connection.establish.timeout"; |
| public static final int DEFAULT_ESTABLISH_TIMEOUT = 50000; |
| |
| // seconds until we give up on a connection to s3 |
| public static final String SOCKET_TIMEOUT = "fs.s3a.connection.timeout"; |
| public static final int DEFAULT_SOCKET_TIMEOUT = 50000; |
| |
| // number of simultaneous connections to s3 |
| public static final String MAXIMUM_CONNECTIONS = "fs.s3a.connection.maximum"; |
| public static final int DEFAULT_MAXIMUM_CONNECTIONS = 15; |
| |
| // number of records to get while paging through a directory listing |
| public static final String MAX_PAGING_KEYS = "fs.s3a.paging.maximum"; |
| public static final int DEFAULT_MAX_PAGING_KEYS = 5000; |
| |
| public static final String S3N_FOLDER_SUFFIX = "_$folder$"; |
| |
| //connect to s3 through a proxy server? |
| public static final String PROXY_HOST = "fs.s3a.proxy.host"; |
| public static final String PROXY_PORT = "fs.s3a.proxy.port"; |
| public static final String PROXY_USERNAME = "fs.s3a.proxy.username"; |
| public static final String PROXY_PASSWORD = "fs.s3a.proxy.password"; |
| public static final String PROXY_DOMAIN = "fs.s3a.proxy.domain"; |
| public static final String PROXY_WORKSTATION = "fs.s3a.proxy.workstation"; |
| |
| } |