首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏暴走大数据

    HDFS异构存储简介

    []{StorageType.RAM_DISK, StorageType.DISK}, new StorageType[]{StorageType.DISK}, new []{StorageType.SSD}, new StorageType[]{StorageType.DISK}, new StorageType[]{StorageType.DISK []{StorageType.SSD, StorageType.DISK}, new StorageType[]{StorageType.SSD, StorageType.DISK}, []{StorageType.DISK}, StorageType.EMPTY_ARRAY, new StorageType[]{StorageType.ARCHIVE}); final []{StorageType.DISK, StorageType.ARCHIVE}, new StorageType[]{StorageType.DISK, StorageType.ARCHIVE

    2.6K40发布于 2020-08-04
  • 来自专栏赵俊的Java专栏

    Spring 动态注入依赖设计

    */ @PostConstruct @GetMapping("/updateStorageType") public void initStorageType(String storageType ) { // 如果 storageType 为空, 则表示是启动时初始化, 有值则说明是 Web 接口动态更改的 if (storageType == null) { // 伪代码, 读取数据库获取当前存储类型 storageType = xxxService.getCurrentStorage(); } // 设置 fileService 类为当前存储类型对应的 Service fileService = StorageTypeFactory.getStorageTypeService(storageType); } } 大概就是这样, 主要就是不直接使用 @Resouce 注入, 而是在启动时

    1.4K10发布于 2019-12-29
  • 来自专栏繁依Fanyi 的专栏

    实现支持多种存储策略的文件管理系统大致思路

    以下是工厂模式创建存储对象的示例代码: 存储工厂(storage_factory.go) package storage import "errors" type StorageType string const ( LocalStorageType StorageType = "local" // 添加其他存储类型... ) func NewStorage(storageType StorageType) (Storage, error) { switch storageType { case LocalStorageType: return NewLocalStorage := c.Query("storage") // 根据请求参数或其他方式获取存储类型 storage, err := storage.NewStorage(storage.StorageType (storageType)) if err !

    42510编辑于 2024-03-18
  • 来自专栏程序员奇点

    如何用策略模式干掉 if-else

    文件存储方式 * @param file 文件 */ public void uploadFile(String storageType, String file ) { if (storageType.equals(LOCAL)) { System.out.println("文件" + file + "已上传到 本地服务器 "); } else if (storageType.equals(FTP)) { System.out.println("文件" + file + "已上传到 ftp服务器"); } else if (storageType.equals(FASTDFS)) { System.out.println("文件" + file + "已上传到 fastdfs服务器"); } else if (storageType.equals(HDFS)) { System.out.println(

    54220编辑于 2022-06-14
  • 来自专栏前端小兵成长营

    项目实战|缓存处理

    this.type = type this.time = time this.cacheSize = cacheSize * 1024 * 1024 this.storageType } } baseSetItem(key, value) { // 接管原生新增方法 return { local() { window[this.storageType [this.type]].setItem(key, value) }, session() { window[this.storageType[this.type]].setItem [this.type]].removeItem(key) }, session() { window[this.storageType[this.type]].removeItem getCacheSize() { let storage = window[this.storageType[this.type]]; if (storage !

    62020发布于 2020-10-23
  • 来自专栏hml_知识记录

    SQL命令 CREATE TABLE(六)

    SQL命令 CREATE TABLE(六) WITH子句,%CLASSPARAMETER关键字,STORAGETYPE关键字 可选的WITH子句可以在表格元素逗号结尾的圆括号之后和Shard Key定义 STORAGETYPE子句 %CLASSPARAMETER子句 在WITH关键字之后,可以指定多个%CLASSPARAMETER关键字子句,每个子句定义一个类参数。 STORAGETYPE子句 在WITH关键字之后,可以指定一个STORAGETYPE子句,STORAGETYPE=ROW或STORAGETYPE=COLUMN。 如果多次指定STORAGETYPE,则生成SQLCODE -327错误。 示例:动态SQL和嵌入式SQL 下面的示例演示了使用动态SQL和嵌入式SQL创建表。

    62820编辑于 2022-04-15
  • 来自专栏小麦苗的DB宝专栏

    【DB宝24】在Oracle 19c中创建容器数据库(1)--DBCA静默创建CDB

    dbsnmpPassword lhr \ -datafileDestination '+DATA' -recoveryAreaDestination '+FRA' \ -redoLogFileSize 50 \ -storageType dbsnmpPassword lhr \ -datafileDestination '+DATA' -recoveryAreaDestination '+FRA' \ -redoLogFileSize 50 \ -storageType /oradata' \ -recoveryAreaDestination '/u01/app/oracle/flash_recovery_area' \ -redoLogFileSize 50 \ -storageType /oradata' \ -recoveryAreaDestination '/u01/app/oracle/flash_recovery_area' \ -redoLogFileSize 50 \ -storageType /oradata' \ -recoveryAreaDestination '/u01/app/oracle/flash_recovery_area' \ -redoLogFileSize 50 \ -storageType

    4K30发布于 2020-10-29
  • 来自专栏波波烤鸭

    Hadoop之HDFS03【NameNode工作原理】

    10:39:49 CST 2019 namespaceID=310844358 clusterID=CID-5d42338e-6111-4be0-b425-3d6c80a3acd8 cTime=0 storageType =BP-1966867742-192.168.88.61-1554172789025 layoutVersion=-60 namespaceID是文件系统的唯一标识符,在文件系统首次格式化之后生成; storageType 说明这个文件存储的是什么进程的数据结构信息(如果是DataNode,storageType=DATA_NODE); cTime表示NameNode存储时间的创建时间,由于我的NameNode没有更新过,

    92500发布于 2019-04-18
  • 来自专栏蓝天

    查看HDFS集群信息

    56:57 GMT 2014 namespaceID=1397306199 clusterID=CID-bfe869e9-fe7a-48c7-9606-08512f1708be cTime=0 storageType CID-bfe869e9-fe7a-48c7-9606-08512f1708be cTime=0 datanodeUuid=e6e43082-2289-4542-8f51-c0989352d065 storageType

    1.5K20发布于 2018-08-10
  • 来自专栏陈猿解码

    HDFS的集群信息

    CST 2022 namespaceID=161164106 clusterID=CID-78f2e32d-93e0-4aeb-84ef-c84fa92520e0 cTime=1646959941280 storageType 2022 namespaceID=161164106 clusterID=CID-78f2e32d-93e0-4aeb-84ef-c84fa92520e0 cTime=1646959941280 storageType =CID-78f2e32d-93e0-4aeb-84ef-c84fa92520e0 cTime=0 datanodeUuid=78434f35-7229-49d2-b225-db2e11b6eb6b storageType =DS-2d782d28-48fe-4804-9648-a20992700e34 clusterID=CID-78f2e32d-93e0-4aeb-84ef-c84fa92520e0 cTime=0 storageType =CID-78f2e32d-93e0-4aeb-84ef-c84fa92520e0 cTime=0 datanodeUuid=78434fe5-7229-49d2-b225-db2e11b6eb6b storageType

    50530编辑于 2023-02-28
  • 来自专栏前端小兵成长营

    前端设计模式之代理模式

    根据类型跟缓存时间,初始化缓存方法 const { type, time } = props this.type = type this.time = time this.storageType session: 'sessionStorage' } } setItem(key, value) { // 代理原生缓存方法,添加缓存时间 window[this.storageType key) { // 代理原生获取缓存方法,根据缓存时间,判断数据是否过期 try { const { time, value } = JSON.parse(window[this.storageType key)); const now = new Date().getTime() if (now > time + this.time) { window[this.storageType

    69020发布于 2020-10-23
  • 来自专栏数据和云

    12c特性解读:RAC MGMTDB资料库的转移与维护

    >/bin/dbca -silent-createDatabase -templateName MGMTSeed_Database.dbc -sid -MGMTDB -gdbName_mgmtdb -storageType >/bin/dbca -silent-createDatabase -templateName MGMTSeed_Database.dbc -sid -MGMTDB -gdbName_mgmtdb -storageType silent-createDatabase -sid -MGMTDB -createAsContainerDatabasetrue -templateName MGMTSeed_Database.dbc -gdbName _mgmtdb -storageType >/bin/dbca -silent-createDatabase -templateName MGMTSeed_Database.dbc -sid -MGMTDB -gdbName_mgmtdb -storageType silent-createDatabase -sid -MGMTDB -createAsContainerDatabase true -templateNameMGMTSeed_Database.dbc -gdbName _mgmtdb -storageType

    1.9K40发布于 2018-03-06
  • 来自专栏milvus数据库

    # CreateIndex API执行流程_milvus源码解析2

    meta.CollectionID, meta.IndexID)var storageConfig *indexpb.StorageConfig// 获取元数据存储类型:minioif Params.CommonCfg.StorageType.GetValue "local" {storageConfig = &indexpb.StorageConfig{RootPath: Params.LocalStorageCfg.Path.GetValue(),StorageType : Params.CommonCfg.StorageType.GetValue(),}} else {storageConfig = &indexpb.StorageConfig{Address: Params.MinioCfg.UseIAM.GetAsBool(),IAMEndpoint: Params.MinioCfg.IAMEndpoint.GetValue(),StorageType : Params.CommonCfg.StorageType.GetValue(),Region: Params.MinioCfg.Region.GetValue(),UseVirtualHost

    39900编辑于 2023-11-30
  • 来自专栏个人分享

    Hadoop源码学习之HDFS(一)

    在StorageInfo中存储了layoutVersion:版本号,namenodeID是Storage的ID,cTime,creation time,storageType。 ?

    70010发布于 2018-09-06
  • 来自专栏小工匠聊架构

    SpringBoot - FileStorage Starter场景启动器

    * 3. sftp:SFTP 服务器 * 4. s3:支持 S3 协议的云存储服务,比如 MinIO、阿里云、华为云、腾讯云、七牛云等等 */ private StorageType storageType; private LocalStorageProperties local; private FtpStorageProperties ftp; private S3StorageProperties s3; /** * Type of Storage to use. */ public enum StorageType type = config.getStorageType().name(); // 缓存对象,避免重复创建 if (ZhongFuFileUploadProperties.StorageType.local.name uploader.put(type, new SftpFileStorage(config)); } else if (ZhongFuFileUploadProperties.StorageType.s3

    1.6K30编辑于 2022-04-21
  • 来自专栏电子科技大学

    腾讯云TDP-腾讯云云服务器CVM和腾讯云文件存储CFS功能展示

    CreateCfsFileSystem --cli-unfold-argument --region ap-beijing --Zone ap-beijing-2 --Protocol NFS --StorageType CreateCfsFileSystem --cli-unfold-argument --region ap-beijing --Zone ap-beijing-2 --Protocol CIFS --StorageType | 0 || || StorageResourcePkg | || || StorageType | 0 || || StorageResourcePkg | || || StorageType

    12.5K90编辑于 2021-12-14
  • 来自专栏python3

    linux snmpv3添加用户,简单理

    . # Format is: #  userName engineID authProto authKey privProto privKey keyType storageType # USM_USER for the View-based Access Control Model (VACM). # Format is: #  groupName securityModel securityName storageType for the #    View-based Access Control Model. # Format is: #  viewName viewSubtree viewMask viewType storageType is: # groupName contextPrefix contextMatch securityLevel securityModel readView writeView notifyView storageType notifications. # Format is: #  targetAddrName tDomain tAddress tagList targetParams timeout retryCount storageType

    2.7K10发布于 2020-01-09
  • 来自专栏技术实操

    程序出错瞎找?教你写“会说话”的错误日志,秒定位原因

    尽可能具体——别用“通用词”,要“精准到细节”反面:log.error("zone storage type not support, zone: " + zone.getZoneId() + ", storageType : " + storageType.name());(没说支持啥类型) 正面:og.error("[检查zone存储] zone不支持该存储类型,zoneID:{},传入类型:{},支持类型:dfs1 /dfs2(需搭配io3/io4),建议:修改zone存储配置", zone.getZoneId(), storageType.name());连“正确的配置是什么”都说明白,不用再查代码。

    38610编辑于 2025-09-29
  • 来自专栏云+技术

    多云数据管理深度实践中 | 配置OpenSDS多后端(LVM、Cinder、Ceph)

    the License. configFile: /etc/ceph/ceph.conf pool: osdsrbd: # change pool name same to ceph pool storageType tenantId: "7c56fea7577b41d880b51365a26fd220" tenantName: "admin" pool: "ceph@rbd-1#rbd-1": # "rbd-1": storageType

    1K20发布于 2020-03-04
  • 来自专栏大宇笔记

    《vue3+ts+element-plus 后台管理系统系列》之vuex4.x

    UserModel } from '@/views/global/UserModel' import { Convert } from '@/utils/jsonToModel' import storage, { StorageType 把登录的用户的名保存到localStorage中,防止页面刷新,导致vuex重新启动,(初始值为空)的情况 // RCStorage.shared() storage.rcSetItem(StorageType.local 'user', Convert.modelToJson(user)) } } // 定义基本属性 const state = { user: '' || storage.rcGetItem(StorageType.local

    1.5K21发布于 2021-03-02
领券